File: rules

package info (click to toggle)
python-opcodes 0.0~git20180424.6e2b0cd-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 6,436 kB
  • sloc: xml: 149,634; python: 1,100; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 828 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
26
27
28
29
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=opcodes


%:
	dh $@ -Spybuild --with python3,sphinxdoc

execute_after_dh_auto_clean:
	-$(RM) -rf sphinx/html opcodes.egg-info

execute_after_dh_auto_build:
	python3 -m sphinx sphinx sphinx/html

override_dh_installdocs:
	dh_installdocs --doc-main-package=python3-opcodes -ppython-opcodes-doc
	dh_installdocs -ppython3-opcodes

execute_after_dh_installdocs:
	-find debian -type f,l -name '*.js' -delete
	-find debian -type d -name 'bootstrap*' -exec $(RM) -rf '{}' \;
	-find debian -type d -name 'bootswatch*' -exec $(RM) -rf '{}' \;
	-find debian -type f -name '*doctree*' -delete
	-find debian -type d -name '.doctrees' -exec $(RM) -rf '{}' \;

execute_before_dh_link:
	-$(RM) -r \
		debian/python-opcodes-doc/usr/share/doc/python3-opcodes/html/_static/bootstrap*