summaryrefslogtreecommitdiff
path: root/debian/rules
blob: be338540ab37582a09d5b2ae341923c88562058d (plain)
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
#!/usr/bin/make -f
# Should be include-links, but that somehow fails.
export DH_PYCENTRAL=nomove
export DEBVER=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
export CFLAGS=-Wno-write-strings -DCOMPAT_0_7

%:
	dh --with python-central $@

override_dh_auto_build:
	dh_auto_build
	python setup.py build_sphinx

override_dh_installdocs:
	dh_installdocs
	ln -sf ../../../../javascript/jquery/jquery.js \
	      debian/python-apt-doc/usr/share/doc/python-apt-doc/html/_static/jquery.js
	rm -rf debian/python-apt-dbg/usr/share/doc/python-apt-dbg
	ln -s python-apt debian/python-apt-dbg/usr/share/doc/python-apt-dbg

override_dh_strip:
	dh_strip --dbg-package=python-apt-dbg
	
override_dh_compress:
	dh_compress -X.js -X_static/* -X _sources/* -X_sources/*/* -X.inv

override_dh_auto_test:
	set -e; for python in $(shell pyversions -r); do \
		$$python tests/test_all.py -q; \
	done;

override_dh_pycentral:
	dh_pycentral --exclude=migrate-0.8.py