Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE = 1
3
4 export PYBUILD_NAME=opcodes
5
6
7 %:
8 dh $@ -Spybuild --with python3,sphinxdoc
9
10 execute_after_dh_auto_clean:
11 -$(RM) -rf sphinx/html opcodes.egg-info
12
13 execute_after_dh_auto_build:
14 python3 -m sphinx sphinx sphinx/html
15
16 override_dh_installdocs:
17 dh_installdocs --doc-main-package=python3-opcodes -ppython-opcodes-doc
18 dh_installdocs -ppython3-opcodes
19
20 execute_after_dh_installdocs:
21 -find debian -type f,l -name '*.js' -delete
22 -find debian -type d -name 'bootstrap*' -exec $(RM) -rf '{}' \;
23 -find debian -type d -name 'bootswatch*' -exec $(RM) -rf '{}' \;
24 -find debian -type f -name '*doctree*' -delete
25 -find debian -type d -name '.doctrees' -exec $(RM) -rf '{}' \;
26
27 execute_before_dh_link:
28 -$(RM) -r \
29 debian/python-opcodes-doc/usr/share/doc/python3-opcodes/html/_static/bootstrap*