File: rules

package info (click to toggle)
pam-pgsql 0.7.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid, stretch
  • size: 3,216 kB
  • ctags: 244
  • sloc: sh: 11,377; ansic: 1,082; makefile: 41; sql: 8
file content (25 lines) | stat: -rwxr-xr-x 641 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
#!/usr/bin/make -f
# -- Rules to build libpam-pgsql package

## globals
PACKAGE=    libpam-pgsql
DESTDIR=    $(CURDIR)/debian/${PACKAGE}

override_dh_auto_configure:
	autoreconf -vfi
	# Build the module
	./configure $(shell dpkg-buildflags --export=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 \
	 ${DESTDIR}/lib/security/pam_pgsql.la

override_dh_makeshlibs:
	dh_makeshlibs --noscripts

%:
	dh $@ --with autotools_dev