| 1 |
#!/usr/bin/make -f |
| 2 |
# Uncomment this to turn on verbose mode. |
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export PYBUILD_NAME = gavo |
| 6 |
export PYBUILD_INSTALL_ARGS = --root=debian/tmp/ |
| 7 |
|
| 8 |
EXCLUDE_FROM_PACKAGE=-Xrjsmin -Xtestresources |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with python3 --buildsystem=pybuild |
| 12 |
|
| 13 |
override_dh_install: |
| 14 |
dh_install $(EXCLUDE_FROM_PACKAGE) |
| 15 |
|
| 16 |
override_dh_installinit: |
| 17 |
dh_installinit --noscripts --name=dachs |
| 18 |
|
| 19 |
override_dh_installsystemd: |
| 20 |
dh_installsystemd --restart-after-upgrade --name=dachs |
| 21 |
|
| 22 |
# we're shutting up dh_missing until someone bothers to work out how |
| 23 |
# to get rid of the __pycache__ directories that pop up during package build. |
| 24 |
override_dh_missing: |
| 25 |
dh_missing --list-missing |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
# DaCHS' tests want to be run from the tests directory; until |
| 29 |
# we find some way to teach pybuild to do that (or change the |
| 30 |
# test system), make pybuild skip the tests |