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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=$(DEB_SOURCE)
export PYTHONPATH=$(CURDIR)/src
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
override_dh_auto_clean:
rm -rf docs/_build
rm -rf src/webassets.egg-info/
rm -f debian/webassets.1
dh_auto_clean
execute_after_dh_auto_install:
# Doc
cd docs; \
make html; \
cd -
rm -f debian/python-webassets/usr/bin/webassets
help2man --version-string=$(DEB_VERSION_UPSTREAM) \
--name="Asset management application for Python web development" \
--no-info \
debian/python3-webassets/usr/bin/webassets > debian/webassets.1
override_dh_installexamples:
dh_installexamples -X.gitignore
execute_after_dh_python3:
rm -vf debian/*/usr/lib/python3/dist-packages/webassets/six.py
|