File: rules

package info (click to toggle)
pyflot 0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 564 kB
  • ctags: 318
  • sloc: python: 612; makefile: 121; sh: 1
file content (26 lines) | stat: -rwxr-xr-x 469 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYTHON2=$(shell pyversions -vr)

%:
	dh $@ --with python2,sphinxdoc

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* runtests.py

override_dh_auto_test: $(PYTHON2:%=test-python%)
endif

override_dh_installdocs:
	cd docs && $(MAKE) html
	dh_installdocs docs/_build/html

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build
	rm -rf docs/_build
	rm -rf *.egg-info