File: rules

package info (click to toggle)
hypopg 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 284 kB
  • sloc: ansic: 1,800; sql: 106; makefile: 55; python: 53; sh: 2
file content (28 lines) | stat: -rwxr-xr-x 752 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
28
#!/usr/bin/make -f

PKGVER = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }')
EXCLUDE = --exclude-vcs --exclude=debian

include /usr/share/postgresql-common/pgxs_debian_control.mk

override_dh_auto_build:
	# do nothing

override_dh_auto_test:
	# nothing to do here, upstream tests used, see debian/tests/*

override_dh_auto_install:
	# build all supported versions
	+pg_buildext loop postgresql-%v-hypopg

override_dh_installdocs:
	dh_installdocs --all CONTRIBUTORS.md README.md
	rm -rvf debian/*/usr/share/doc/postgresql-doc-*

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md upstream

orig: debian/control clean
	cd .. && tar czf hypopg_$(PKGVER).orig.tar.gz $(EXCLUDE) hypopg-$(PKGVER)
%:
	dh $@