File: rules

package info (click to toggle)
spaghetti 1.7.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 30,412 kB
  • sloc: python: 2,301; makefile: 40
file content (28 lines) | stat: -rwxr-xr-x 916 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export HOME=$(CURDIR)
export PYBUILD_NAME=spaghetti
export PYBUILD_TEST_ARGS=-v -p no:warnings

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

# Build sphinx HTML documentation
override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. https_proxy='https://127.0.0.1:9/' no_proxy=localhost python3 -m sphinx -N -bhtml docs/ debian/html

override_dh_link:
	dh_link
#Fixe duplicate-files
	jdupes -rl debian/python-spaghetti-doc

# Fixe privacy-breach-generic
	find debian/python-spaghetti-doc/ -name '*.html' -exec sed -i 's|src="https:||g' {} \;
	find debian/ -name \test_network.pkl -delete \
		-o -name \*jquery*.min.js -delete \
		-o -iname \*bootstrap.js -delete \
		-o -iname \nsf_logo.png -delete \
		-o -iname \*glyphicons* -delete
	find debian/python-spaghetti-doc/usr/ -type d -empty -delete
	rm -rf debian/python3-spaghetti/usr/lib/python3/dist-packages/core