bb8c0b77 |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- |
bb8c0b77 |
3 | |
4 | CFLAGS = -Wall -g |
bb8c0b77 |
5 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
6 | CFLAGS += -O0 |
7 | else |
8 | CFLAGS += -O2 |
9 | endif |
10 | |
bce7d4d9 |
11 | default:binary |
12 | |
bce7d4d9 |
13 | apache20: |
bb8c0b77 |
14 | dh_testdir |
ebb1f61c |
15 | chmod +x regen.sh |
16 | ./regen.sh |
ebb1f61c |
17 | ./configure \ |
18 | --with-afs-libs=/usr/lib/afs \ |
19 | --with-afs-headers=/usr/include/afs \ |
20 | --with-apache-headers=/usr/include/apache2 \ |
21 | --with-apxs=/usr/bin/apxs2 |
bce7d4d9 |
22 | make clean |
ebb1f61c |
23 | $(MAKE) |
24 | mv .libs/mod_waklog.so .; true |
ebb1f61c |
25 | dh_installdirs |
26 | mkdir -p debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
27 | mkdir -p debian/libapache2-mod-waklog/etc/apache2/mods-available |
28 | cp mod_waklog.so debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
29 | cp debian/waklog.load debian/libapache2-mod-waklog/etc/apache2/mods-available |
30 | |
31 | clean: |
32 | dh_testdir |
33 | dh_testroot |
34 | rm -rf build-stamp .libs |
35 | -$(MAKE) clean |
36 | dh_clean --exclude ./_darcs/current/Makefile.orig --exclude ./Makefile.orig |
37 | |
38 | binary-indep: |
bb8c0b77 |
39 | |
669240a1 |
40 | binary-arch: apache20 |
bb8c0b77 |
41 | dh_testdir |
42 | dh_testroot |
43 | dh_installchangelogs |
44 | dh_installdocs |
45 | dh_installexamples |
bb8c0b77 |
46 | dh_installman |
47 | dh_link |
ebb1f61c |
48 | #dh_strip |
bb8c0b77 |
49 | dh_compress |
50 | dh_fixperms |
bb8c0b77 |
51 | dh_installdeb |
52 | dh_shlibdeps |
53 | dh_gencontrol |
54 | dh_md5sums |
55 | dh_builddeb |
56 | |
57 | binary: binary-indep binary-arch |
58 | .PHONY: build clean binary-indep binary-arch binary install configure |