]> andersk Git - mod-vhost-ldap.git/blame - debian/rules
0.2.9: fix running from sub request
[mod-vhost-ldap.git] / debian / rules
CommitLineData
1adeae4a
OS
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.
7export 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)
11DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13
14CFLAGS = -Wall -g
15
16ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS += -O0
18else
19 CFLAGS += -O2
20endif
21ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
22 INSTALL_PROGRAM += -s
23endif
24
25AP2_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
30DEST=$(CURDIR)/debian/libapache2-mod-vhost-ldap
31
32configure: configure-stamp
33configure-stamp:
34 dh_testdir
35 touch configure-stamp
36
37binary: binary-indep binary-arch
38
39binary-indep:
40
41binary-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
57build: build-stamp
58build-stamp: configure-stamp
59 dh_testdir
60 $(MAKE) $(AP2_MAKE_DEFS)
61 touch build-stamp-20
62
63clean:
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
71install: 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.056714 seconds and 5 git commands to generate.