File: rules

package info (click to toggle)
manuel 1.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 296 kB
  • sloc: python: 911; makefile: 13; sh: 1
file content (19 lines) | stat: -rwxr-xr-x 620 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=manuel

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	rm -f debian/python*-manuel/usr/lib/python*/dist-packages/manuel/*.txt
	rm -f debian/python*-manuel/usr/lib/python*/dist-packages/manuel/tests.py
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. http_proxy='127.0.0.1:9' \
	python3 -m sphinx -N -bhtml -c sphinx src/manuel debian/python3-manuel/usr/share/doc/python3-manuel/html
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst