| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
#export PYTHONDONTWRITEBYTECODE=1 |
| 7 |
#export PYTHONPYCACHEPREFIX=/debian/tmp |
| 8 |
|
| 9 |
include /usr/share/dpkg/pkg-info.mk |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --with python3 |
| 13 |
|
| 14 |
override_dh_auto_test: |
| 15 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 16 |
python3 -m py_compile files/docker/systemctl3.py |
| 17 |
files/docker/systemctl3.py --version |
| 18 |
endif |
| 19 |
# test suite is not converted to Python3 yet. |
| 20 |
# dh_auto_test |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_auto_install --destdir=debian/tmp |
| 24 |
cp -v files/docker/systemctl3.py debian/tmp/systemctl |
| 25 |
|
| 26 |
MAN=debian/tmp/systemctl.1 |
| 27 |
$(MAN): |
| 28 |
help2man \ |
| 29 |
--no-info \ |
| 30 |
--version-string="$(DEB_VERSION_UPSTREAM)" \ |
| 31 |
--name 'command line utility to manage services without SystemD' \ |
| 32 |
debian/tmp/systemctl > $@ |
| 33 |
|
| 34 |
override_dh_installdocs: $(MAN) |
| 35 |
dh_installdocs -XEUPL-LICENSE.md -XRELEASENOTES.md |
| 36 |
|
| 37 |
override_dh_installchangelogs: |
| 38 |
dh_installchangelogs RELEASENOTES.md |