File: rules

package info (click to toggle)
python-pwdlib 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 624 kB
  • sloc: python: 403; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export PYTHONWARNINGS=d
export PYBUILD_NAME = pwdlib
export PYBUILD_TEST_ARGS=--no-cov

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs.debian

execute_after_dh_auto_build:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m mkdocs build -v -d docs.debian/html
	rm -rf docs.debian/html/__pycache__
	rm -rf docs.debian/html/sitemap.xml.gz
endif