File: rules

package info (click to toggle)
opgpcard 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 864 kB
  • sloc: python: 520; makefile: 19
file content (11 lines) | stat: -rwxr-xr-x 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/make -f
export PYBUILD_NAME=opgpcard
export PYBUILD_DESTDIR=debian/opgpcard
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -N -bhtml docs/source/ docs/build/html # HTML generator
	find build/html -type f -name '*.html' -print0 | xargs -0r sed -i -e 's@$(CURDIR)/@@g'
	PYTHONPATH=. sphinx-build -N -bman docs/source/ docs/build/man # man generator