File: rules

package info (click to toggle)
postgresql-plsh 1.3-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,452 kB
  • sloc: sh: 8,849; makefile: 1,176; ansic: 420; sql: 30
file content (50 lines) | stat: -rwxr-xr-x 1,171 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

SRCDIR=$(CURDIR)
include /usr/share/postgresql-common/pgxs_debian_control.mk
.PHONY: debian/control

build build-arch: build-stamp
build-stamp:
	dh_testdir
	+pg_buildext configure $(CURDIR) version-%v "--libdir=/usr/lib/postgresql/%v/lib --datadir=/usr/share/postgresql-%v-plsh"
	+pg_buildext build $(CURDIR) version-%v
	touch $@

build-indep:

clean: debian/control
	dh_testdir
	dh_testroot
	rm -rf build-stamp version-?.?
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	+pg_buildext install $(CURDIR) version-%v postgresql-%v-plsh
	rm $(CURDIR)/debian/postgresql-*-plsh/usr/lib/postgresql/*/lib/pgplsh.la
	rm $(CURDIR)/debian/postgresql-*-plsh/usr/share/postgresql-*-plsh/test.sql
	chmod 644 $(CURDIR)/debian/postgresql-*-plsh/usr/share/postgresql-*-plsh/*

binary binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs -a
	dh_installdocs -a --all README NEWS
	dh_install -a
	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary-indep:

.PHONY: build build-arch build-indep clean binary binary-arch binary-indep