File: rules

package info (click to toggle)
postgresql-filedump 13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 244 kB
  • sloc: ansic: 2,692; makefile: 32; sh: 18; sql: 15
file content (20 lines) | stat: -rwxr-xr-x 451 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

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