File: rules

package info (click to toggle)
pgxnclient 1.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 584 kB
  • ctags: 647
  • sloc: python: 4,666; makefile: 58
file content (17 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
#!/usr/bin/make -f

override_dh_auto_test:
	# HOME points to a non-existent directory on buildds, but the tests want it
	TMPDIR=$$(mktemp --tmpdir -d pgxnclient.test.XXXXXX); \
	trap "rm -rf $$TMPDIR" 0 2 3 15; \
	HOME=$$TMPDIR dh_auto_test

override_dh_install:
	python setup.py install --prefix=/usr --root=$(CURDIR)/debian/pgxnclient --install-layout=deb

override_dh_auto_clean:
	dh_auto_clean
	find pgxnclient -name '*.pyc' | xargs -r rm

%:
	dh $@ --with python2