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
|
#!/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 PYBUILD_TEST_ARGS=-k "not (test_execute or test_dep or test_target)"
%:
dh $@ --with bash-completion,sphinxdoc --buildsystem=pybuild
execute_after_dh_bash-completion:
cp zsh_completion_doit debian/python3-doit/usr/share/zsh/vendor-completions/_doit
execute_after_dh_auto_clean:
rm -rf doc/_build
rm -f debian/doit.1
rm -f tests/data/stop
rm -f tests/data/dependency*
rm -f tests/data/target
rm -f tests/data/w*.txt
execute_before_dh_installman:
# Generate manpages, stripping out the non-reproducible 'lib @ <dir>' line.
PYTHONPATH=$(CURDIR) help2man -n "build-tools to execute any kind of task" -N debian/python3-doit/usr/bin/doit | grep -v 'lib @' > debian/doit.1
execute_before_dh_installdocs:
# build the html pages for the -doc package
set -ex; \
export PYTHONPATH=$(CURDIR); \
cd doc; \
make html;
override_dh_installexamples:
dh_installexamples -X.gitignore
|