File: rules

package info (click to toggle)
pam-pgsql 0.7.1-4%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,532 kB
  • ctags: 328
  • sloc: sh: 10,098; ansic: 1,556; makefile: 50; sql: 8
file content (34 lines) | stat: -rwxr-xr-x 791 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
#!/usr/bin/make -f
# -- Rules to build libpam-pgsql package

## globals
PACKAGE=    libpam-pgsql
DESTDIR=    $(CURDIR)/debian/${PACKAGE}
INSTALL=    /usr/bin/install
SHELL=      /bin/sh

override_dh_auto_configure:
	cp /usr/share/misc/config.sub .
	cp /usr/share/misc/config.guess .
	autoreconf -vfi
	# Build the module
	./configure --docdir=/usr/share/doc/libpam-pgsql --libdir=/lib \
	 --enable-shared

override_dh_auto_install:
	# Install it
	${MAKE} DESTDIR=${DESTDIR} install
	rm -f ${DESTDIR}/usr/share/doc/libpam-pgsql/CHANGELOG \
	 ${DESTDIR}/usr/share/doc/libpam-pgsql/sample.sql

override_dh_auto_clean:
	# Clean up
	[ ! -f Makefile ] || ${MAKE} distclean
	rm -f build-all install-stamp
	rm -f config.sub config.guess

override_dh_makeshlibs:
	dh_makeshlibs --noscripts

%:
	dh $@