File: rules

package info (click to toggle)
python-fudge 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 744 kB
  • sloc: javascript: 3,300; python: 2,537; makefile: 82; sh: 5
file content (25 lines) | stat: -rwxr-xr-x 534 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
#!/usr/bin/make -f

#DH_VERBOSE=1

export PYBUILD_NAME=fudge
export PYBUILD_DISABLE=test

SPHINXOPTS := -N -E

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/.mypy_cache
	rm -rf $(CURDIR)/docs/.build

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-fudge-doc/usr/share/doc/python-fudge-doc/html
	dh_sphinxdoc
endif

override_dh_compress:
	dh_compress -i -X.rst -X.js -X.html -X.txt