File: rules

package info (click to toggle)
python-periodictable 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,884 kB
  • sloc: python: 8,509; makefile: 97; sh: 91; javascript: 7
file content (33 lines) | stat: -rwxr-xr-x 988 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
30
31
32
33
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=periodictable

export PYBUILD_TEST_ARGS=test doc/sphinx/guide periodictable
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/api'
export MPLBACKEND=Agg

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .mplconfig api .cache

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml     doc/sphinx build/html # HTML generator
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -btexinfo  doc/sphinx build/texinfo # Info generator
	ln -sf /usr/share/javascript/mathjax/ build/html/_static/mathjax

override_dh_installinfo:
	cd build/texinfo; \
	  makeinfo $(PYBUILD_NAME).texi
	dh_installinfo

override_dh_installdocs:
	cp doc/README.txt doc/nsf-README.txt
	dh_installdocs
	rm doc/nsf-README.txt