File: rules

package info (click to toggle)
pgxnclient 1.2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 612 kB
  • sloc: python: 4,666; makefile: 67; sh: 1
file content (27 lines) | stat: -rwxr-xr-x 819 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
27
#!/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

override_dh_installman:
	PATH=$(CURDIR)/bin:$(PATH) \
	PYTHONPATH=$(CURDIR) \
	help2man --no-discard-stderr --no-info \
		--name "Interact with the PostgreSQL Extension Network" \
		--version-string=$(shell dpkg-parsechangelog -S Version) \
		pgxnclient > pgxnclient.1
	grep DESCRIPTION pgxnclient.1 # check manpage generation worked
	dh_installman

%:
	dh $@ --with python2