File: rules

package info (click to toggle)
sardana 2.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,796 kB
  • ctags: 8,163
  • sloc: python: 50,546; makefile: 16
file content (25 lines) | stat: -rwxr-xr-x 746 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export PYBUILD_NAME=sardana

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

override_dh_installman:
	dh_installman -p python-sardana doc/man/*.1

override_dh_sphinxdoc: export http_proxy=127.0.0.1:9
override_dh_sphinxdoc: export https_proxy=127.0.0.1:9
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. sphinx-build -N -bhtml doc/source build/html # HTML generator
	dh_installdocs "build/html" -p python-sardana-doc
	dh_sphinxdoc -O--buildsystem=pybuild

	rdfind -outputname /dev/null -makesymlinks true debian/python-sardana-doc/
	# Fix those symlinks to make them relative
	symlinks -r -s -c debian/python-sardana-doc/
endif

# avoid unit test for now
override_dh_auto_test: