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
|
#!/usr/bin/make -f
manpages = $(shell (ls doc/*.md | sed 's/.md//'))
export PYBUILD_NAME=comitup
export PYBUILD_DISABLE=test
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/comitup\
--install-scripts=/usr/share/comitup
%:
dh $@ --with python3,systemd --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
for mn in ${manpages}; do \
pandoc $$mn.md -s -t man -o $$mn; \
sed -i 's/\\\[en\]/\\\-/' $$mn; \
pandoc $$mn.md -s -t html -o $$mn.html; \
done
override_dh_systemd_enable:
dh_systemd_enable
dh_systemd_enable --name=comitup-web
override_dh_installinit:
# to silence lintian complaints about phantom init.d files
|