File: rules

package info (click to toggle)
munkres 1.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 136 kB
  • ctags: 55
  • sloc: python: 316; sh: 18; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 490 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
#!/usr/bin/make -f

export PYBUILD_NAME=munkres

%:
	dh $@ --with python2,python3 --buildsystem pybuild

override_dh_auto_build:
	dh_auto_build
	epydoc --html -o debian/html --name=Munkres \
	       --url=http://software.clapper.org/munkres/ munkres.py

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS='{interpreter} munkres.py > test-output && diff -u {dir}/debian/test-output test-output' \
		dh_auto_test

override_dh_clean:
	dh_clean
	rm -rf debian/html test-output