File: rules

package info (click to toggle)
pdfminer 20140328%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,488 kB
  • ctags: 937
  • sloc: python: 11,748; xml: 423; makefile: 166
file content (50 lines) | stat: -rwxr-xr-x 1,482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

here = $(dir $(firstword $(MAKEFILE_LIST)))/..
upstream_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e '/^Version: (.+)([+]dfsg).*/ { s//\1/; p; q; }')

.PHONY: override_dh_auto_build
override_dh_auto_build:
	$(MAKE) cmap
	dh_auto_build

.PHONY: override_dh_install
override_dh_install:
	rename.ul .py '' debian/tmp/usr/bin/*.py
	dh_install

.PHONY: override_dh_installman
override_dh_installman:
	$(MAKE) -C debian/manpages/
	dh_installman

# Disable tests inside samples directory since they are failing also
# upstream:
# https://github.com/euske/pdfminer/issues/115
.PHONY: override_dh_auto_test
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	set -e -x; \
	for python in $(shell pyversions -r); do \
		$$python /usr/bin/nosetests --with-doctest --verbose pdfminer/*.py; \
	done
endif

.PHONY: get-orig-source
get-orig-source:
	uscan --verbose --force-download --repack

.PHONY: override_dh_installchangelogs
override_dh_installchangelogs:
	elinks -config-file /dev/null -dump -no-numbering -no-references docs/index.html \
	| sed -n -e '/^Changes/,/^  ---/ { /^     / s/// p }' \
	> docs/changelog
	dh_installchangelogs docs/changelog

.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
build build-arch build-indep binary binary-indep clean:
	dh $(@) --with python2 -Spython_distutils
# In order not to confuse lintian, binary-arch is a separate target:
binary-arch:

# vim:ts=4 sw=4 noet