File: rules

package info (click to toggle)
binoculars 0.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,292 kB
  • sloc: python: 21,407; makefile: 160
file content (25 lines) | stat: -rwxr-xr-x 729 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 DH_VERBOSE=1
export PYBUILD_NAME=binoculars
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/

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

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -s tests -t {dir} -v'

override_dh_install:
	dh_numpy3
	dh_install

        # install scripts into binoculars
	python3 setup.py install_scripts -d debian/binoculars/usr/bin

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