File: rules

package info (click to toggle)
pgpointcloud 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,712 kB
  • sloc: sql: 41,137; ansic: 10,943; xml: 935; cpp: 282; perl: 248; makefile: 171; sh: 70
file content (32 lines) | stat: -rwxr-xr-x 832 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
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

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

VERSIONS=$(shell pg_buildext supported-versions)

override_dh_auto_configure:
	# nothing to do here, see override_dh_auto_install instead

override_dh_auto_build:
	# nothing to do here, see override_dh_auto_install instead

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

override_dh_auto_install:
	+set -eux; for v in $(VERSIONS); do \
	  [ -f pgsql/Makefile ] && $(MAKE) -C pgsql distclean; \
	  dh_auto_configure -- --with-pgconfig=/usr/lib/postgresql/$$v/bin/pg_config GITCMD=false; \
	  $(MAKE); \
	  $(MAKE) install DESTDIR=$(CURDIR)/debian/postgresql-$$v-pointcloud; \
	done

override_dh_installdocs:
	dh_installdocs --all README.*

override_dh_auto_clean:
	touch config.mk
	dh_auto_clean

%:
	dh $@ --with autoreconf