File: rules

package info (click to toggle)
postgresql-filedump 14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 324 kB
  • sloc: ansic: 3,097; sql: 116; makefile: 34; sh: 18
file content (20 lines) | stat: -rwxr-xr-x 451 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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_build:
	$(MAKE) COPT="$(CFLAGS)"

override_dh_auto_test:
	PATH=$(CURDIR):$(PATH) pg_virtualenv make installcheck

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/postgresql-filedump

override_dh_installdeb:
	sed -i -e "s!^PGBINDIR=.*!PGBINDIR=$(shell pg_config --bindir)!" debian/postinst debian/prerm
	dh_installdeb