File: rules

package info (click to toggle)
fava 1.30.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,856 kB
  • sloc: javascript: 45,789; python: 11,087; makefile: 112; sh: 25
file content (32 lines) | stat: -rwxr-xr-x 948 bytes parent folder | download
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
27
28
29
30
31
32
#! /usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
export PYBUILD_NAME=fava

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build

# manpage generation: use help2man + manual overrides from d/manpages/fava.tpl
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	help2man \
	  --name "Web interface for the double-entry accounting tool Beancount" \
	  --no-info \
	  --include $(CURDIR)/debian/manpages/fava.tpl \
	  "PYTHONPATH=\"$(CURDIR)/src\" $$(pybuild --print interpreter --interpreter python3) -m fava.cli" \
	  > $(CURDIR)/debian/manpages/fava.1
	sed -i s/cli.py/fava/ $(CURDIR)/debian/manpages/fava.1
	sed -i s/FAVA,/FAVA/ $(CURDIR)/debian/manpages/fava.1
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/manpages/fava.1

override_dh_installdocs:
	dh_installdocs -X __init__.py -X __pycache__