File: rules

package info (click to toggle)
uncertainties 3.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 744 kB
  • sloc: python: 3,190; makefile: 52; sh: 16
file content (28 lines) | stat: -rwxr-xr-x 753 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 PYBUILD_NAME=uncertainties
export DH_VERBOSE=1

%:
	dh $@ --buildsystem=pybuild

override_dh_clean:
	dh_clean
	rm -rf debian/html

override_dh_auto_build:
	dh_auto_build
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -E -bhtml doc debian/html
	sed -i 's|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js|file:///usr/share/nodejs/mathjax-full/es5/tex-mml-chtml.js|' debian/html/user_guide.html
	rm -rf ./build/html/.doctrees
endif

# override_dh_sphinxdoc:
# ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
# 	dh_sphinxdoc -ppython-uncertainties-doc
# endif

override_dh_python3:
	dh_python3
	rm -rfv debian/python3-$(PYBUILD_NAME)/usr/lib/python3.*