File: rules

package info (click to toggle)
libnss-pgsql 1.4.0debian-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 1,452 kB
  • ctags: 385
  • sloc: sh: 7,907; ansic: 1,106; xml: 392; makefile: 42; sql: 38
file content (28 lines) | stat: -rwxr-xr-x 757 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
#!/usr/bin/make -f

override_dh_auto_configure:
	autoreconf -if
	./configure \
		--prefix=/usr \
		--libdir=/lib \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--with-docdir=\$${prefix}/share/doc/libnss-pgsql2 \
		--sysconfdir=/etc

override_dh_auto_clean:
ifeq (Makefile, $(wildcard Makefile))
	$(MAKE) maintainer-clean
endif
	rm -rf INSTALL Makefile.in aclocal.m4 autoconf/ configure config.h.in \
	       doc/Makefile.in src/Makefile.in


override_dh_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/libnss-pgsql2
	rm -f $(CURDIR)/debian/libnss-pgsql2/lib/libnss_pgsql.la \
	      $(CURDIR)/debian/libnss-pgsql2/lib/libnss_pgsql.a \
	      $(CURDIR)/debian/libnss-pgsql2/lib/libnss_pgsql.so

%:
	dh $@ --with autotools_dev