File: rules

package info (click to toggle)
pg-gvm 22.6.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 420 kB
  • sloc: ansic: 574; sql: 201; sh: 30; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with pgxs

override_dh_auto_configure:
	set -eux; \
	for pgversion in $(shell pg_buildext supported-versions); do \
		dh_auto_configure -B"build-$$pgversion" -- \
			-DCMAKE_BUILD_TYPE=Release \
			-DPGCONFIG=/usr/lib/postgresql/$$pgversion/bin/pg_config \
			-DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql; \
	done

override_dh_pgxs_test:
	# defer testing to autopkgtest