Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 VERSION := $(shell dpkg-parsechangelog -SVersion)
4 BUILD_SCRIPT := build/dh_doc_privacy
5
6 %:
7 dh $@
8
9 override_dh_auto_build:
10 mkdir -p build
11 sed 's/^__version__ = "unknown"$$/__version__ = "$(VERSION)"/' dh_doc_privacy > $(BUILD_SCRIPT)
12 chmod 0755 $(BUILD_SCRIPT)
13
14 override_dh_auto_test:
15 ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
16 @echo "Skipping tests because DEB_BUILD_OPTIONS contains nocheck"
17 else
18 for py in $$(py3versions -s); do \
19 $$py -Wd -m pytest -v; \
20 done
21 mypy --strict --scripts-are-modules dh_doc_privacy
22 endif
23
24 override_dh_installman:
25 help2man --no-info --section=1 --source=Debian --manual="Debhelper Commands" --name="remove remote assets from package documentation" --include=debian/dh_doc_privacy.h2m $(BUILD_SCRIPT) > debian/dh_doc_privacy.1
26 dh_installman debian/dh_doc_privacy.1