Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
6 export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
7 export PYBUILD_NAME=fava
8
9 %:
10 dh $@ --buildsystem=pybuild
11
12 override_dh_auto_build:
13 dh_auto_build
14
15 # manpage generation: use help2man + manual overrides from d/manpages/fava.tpl
16 ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
17 help2man \
18 --name "Web interface for the double-entry accounting tool Beancount" \
19 --no-info \
20 --include $(CURDIR)/debian/manpages/fava.tpl \
21 "PYTHONPATH=\"$(CURDIR)/src\" $$(pybuild --print interpreter --interpreter python3) -m fava.cli" \
22 > $(CURDIR)/debian/manpages/fava.1
23 sed -i s/cli.py/fava/ $(CURDIR)/debian/manpages/fava.1
24 sed -i s/FAVA,/FAVA/ $(CURDIR)/debian/manpages/fava.1
25 endif
26
27 override_dh_auto_clean:
28 dh_auto_clean
29 rm -f debian/manpages/fava.1
30
31 override_dh_installdocs:
32 dh_installdocs -X __init__.py -X __pycache__