File: rules

package info (click to toggle)
sshuttle 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 892 kB
  • sloc: python: 6,299; sh: 361; makefile: 161
file content (27 lines) | stat: -rwxr-xr-x 739 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

export PYBUILD_NAME=sshuttle

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

.PHONY: override_dh_sphinxdoc
override_dh_sphinxdoc:
#ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs debian/sshuttle/usr/share/doc/sshuttle/html
	PYTHONPATH=. python3 -m sphinx -b man -d docs/.build/.doctrees -N docs debian/sshuttle/usr/share/man/man1
	dh_sphinxdoc
#endif

override_dh_auto_test:
	PYTHONPATH=. \
	    dh_auto_test -- --system=custom --test-args="{interpreter} -m pytest"

.PHONY: override_dh_clean
override_dh_clean:
	dh_clean
	rm -rf tmp
	rm -rf docs/.build docs/_build

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst