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 33 34 35
|
#!/usr/bin/make -f
SRCDIR = $(CURDIR)
include /usr/share/postgresql-common/pgxs_debian_control.mk
clean: debian/control
.PHONY: debian/control
export DISABLE_DIALECT=1
override_dh_auto_build:
+pg_buildext build $(CURDIR) build-%v
markdown doc/plv8.md > doc/plv8.html
clean:
+pg_buildext clean $(CURDIR) build-%v
rm -rf build-?.? debian/postgresql-?.?-plv8 debian/*.substvars doc/plv8.html
dh $@
override_dh_installdocs:
dh_installdocs --all doc/*
override_dh_auto_test:
# noop
override_dh_auto_install:
+pg_buildext install $(CURDIR) build-%v postgresql-%v-plv8
%:
dh $@
VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*.ds\).*/\1/p')
DIR = $(shell basename $(CURDIR))
origtargz: clean
! test -f .pc/applied-patches
cd .. && tar --exclude .git --exclude .pc --exclude debian -cvzf plv8_$(VERSION).orig.tar.gz $(DIR)
|