3 # Uncomment this to turn on verbose mode.
6 # This is the debhelper compatibility version to use.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25 AP2_MAKE_DEFS=top_dir=/usr/share/apache2 \
26 APXS=apxs2 APACHECTL=apachectl2 \
27 LIBTOOL=libtool SH_LIBTOOL=libtool \
28 INCLUDES="-I/usr/include/apache2 -I /usr/include/apr-0"
30 DEST=$(CURDIR)/debian/libapache2-mod-vhost-ldap
32 configure: configure-stamp
37 binary: binary-indep binary-arch
41 binary-arch: build install
57 build-stamp: configure-stamp
59 $(MAKE) $(AP2_MAKE_DEFS)
65 rm -f build-stamp-* configure-stamp-*
76 dh_installchangelogs ChangeLog
77 mkdir -p $(DEST)/usr/lib/apache2/modules
78 install -m 644 .libs/mod_vhost_ldap.so $(DEST)/usr/lib/apache2/modules
79 mkdir -p $(DEST)/etc/apache2/mods-available
80 install -m 644 debian/vhost_ldap.load $(DEST)/etc/apache2/mods-available
81 install -m 644 debian/vhost_ldap.conf $(DEST)/etc/apache2/mods-available
83 .PHONY: binary binary-arch binary-indep clean build install