]> andersk Git - mod-vhost-ldap.git/blob - debian/rules
d6bf254aee9fcc9e9391a3edf271bb01ccf04c86
[mod-vhost-ldap.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 # This is the debhelper compatibility version to use.
7 export DH_COMPAT=3
8
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)
13
14 CFLAGS = -Wall -g
15
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
21 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
22         INSTALL_PROGRAM += -s
23 endif
24
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"
29
30 DEST=$(CURDIR)/debian/libapache2-mod-vhost-ldap
31
32 configure: configure-stamp
33 configure-stamp:
34         dh_testdir
35         touch configure-stamp
36
37 binary: binary-indep binary-arch
38
39 binary-indep:
40
41 binary-arch: build install
42         dh_testdir
43         dh_testroot
44         dh_installdocs
45         dh_installexamples
46         dh_installman
47         dh_link
48         dh_strip
49         dh_compress
50         dh_fixperms -X var/lib/apache2/fastcgi -X var/lib/apache/fastcgi
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 build: build-stamp
58 build-stamp: configure-stamp
59         dh_testdir
60         $(MAKE) $(AP2_MAKE_DEFS)
61         touch build-stamp-20
62
63 clean:
64         dh_testdir
65         dh_testroot
66         rm -f build-stamp-* configure-stamp-*
67         $(MAKE) clean
68         rm -rf build-tree
69         dh_clean
70
71 install: build
72         dh_testdir
73         dh_testroot
74         dh_clean -k
75         dh_installdirs
76         dh_installdocs
77         dh_installchangelogs ChangeLog
78         mkdir -p $(DEST)/usr/lib/apache2/modules
79         install -m 644 .libs/mod_vhost_ldap.so $(DEST)/usr/lib/apache2/modules
80         mkdir -p $(DEST)/etc/apache2/mods-available
81         install -m 644 debian/vhost_ldap.load $(DEST)/etc/apache2/mods-available
82         install -m 644 debian/vhost_ldap.conf $(DEST)/etc/apache2/mods-available
83
84 .PHONY: binary binary-arch binary-indep clean build install
This page took 0.033495 seconds and 3 git commands to generate.