5
# code for passing host/build options to configure
6
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
9
confflags += --build $(DEB_HOST_GNU_TYPE)
11
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
configure: configure-stamp
17
./configure $(confflags) \
19
--mandir=\$${prefix}/share/man \
21
--localstatedir=/var \
24
--disable-maintainer-mode \
25
--disable-dependency-tracking \
26
--with-ldap-lib=openldap \
27
--with-ldap-conf-file=/etc/nslcd.conf \
28
--with-nslcd-pidfile=/var/run/nslcd/nslcd.pid \
29
--with-nslcd-socket=/var/run/nslcd/socket
32
build: configure-stamp build-stamp
39
-test -r /usr/share/misc/config.sub && \
40
cp -f /usr/share/misc/config.sub config.sub
41
-test -r /usr/share/misc/config.guess && \
42
cp -f /usr/share/misc/config.guess config.guess
45
[ ! -f Makefile ] || $(MAKE) distclean
47
debconf-updatepo --verbose
53
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
54
# make configfile fully generated
55
rm -f $(CURDIR)/debian/tmp/etc/nslcd.conf
56
# install a lintian override file
57
install -D -m 644 $(CURDIR)/debian/libnss-ldapd.lintian-overrides \
58
$(CURDIR)/debian/libnss-ldapd/usr/share/lintian/overrides/libnss-ldapd
59
# install a pam-auth-update configuration file
60
install -D -m 644 debian/libpam-ldapd.pam-auth-update debian/tmp/usr/share/pam-configs/ldap
62
# build architecture-independent files
63
binary-indep: build install
64
# we have nothing to do by default
66
# build architecture-dependent files
67
binary-arch: build install
87
binary: binary-indep binary-arch