File: rules

package info (click to toggle)
obnam 1.21-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,032 kB
  • ctags: 2,505
  • sloc: python: 14,404; sh: 410; ansic: 252; makefile: 66; awk: 5
file content (18 lines) | stat: -rwxr-xr-x 423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
%:
	dh $@ --with=python2 --with-buildsystem=python_distutils

override_dh_auto_build:
	dh_auto_build
	make -C manual html

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python setup.py build_ext -i
	rm -rf build
	cp -a test-gpghome temp.gpghome
	env GNUPGHOME=temp.gpghome python setup.py check -u
	rm -rf temp.gpghome
else
	echo NOT RUNNING TESTS DUE TO DEB_BUILD_OPTIONS
endif