1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/lieer/ --install-scripts=/usr/share/lieer/
%:
dh $@ --without python2 --with python3 --buildsystem=pybuild
execute_after_dh_auto_build: debian/gmi.1
debian/gmi.1: ./gmi debian/gmi-man-include debian/control debian/changelog
help2man --no-info --version-string="$(DEB_VERSION)" \
--name="$(shell egrep '^Description: ' debian/control | head -1 | sed 's/Description: //')" \
--include=debian/gmi-man-include \
--output=$@ ./gmi
debian/gmi-man-include: debian/control
echo '[SYNOPSIS]' > $@
awk 'BEGIN {d=0; l=0} /^Description:/ {d=1} /^$$/&&(l==1) {exit} (l==1) {print} (d==1) {l=1}' $< \
| sed 's/^ //' | sed 's/^[.]$$//' >> $@
|