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 | |
13 | apache13: |
bb8c0b77 |
14 | dh_testdir |
bb8c0b77 |
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-apxs=/usr/bin/apxs |
bce7d4d9 |
21 | make clean |
bb8c0b77 |
22 | $(MAKE) |
bce7d4d9 |
23 | dh_installdirs |
24 | mkdir -p debian/libapache-mod-waklog/usr/lib/apache/1.3/ |
25 | mkdir -p debian/libapache-mod-waklog/etc/apache/conf.d/ |
26 | cp mod_waklog.so debian/libapache-mod-waklog/usr/lib/apache/1.3/ |
27 | cp debian/waklog.load debian/libapache-mod-waklog/etc/apache/conf.d/waklog.conf |
bb8c0b77 |
28 | |
bce7d4d9 |
29 | apache20: |
bb8c0b77 |
30 | dh_testdir |
ebb1f61c |
31 | chmod +x regen.sh |
32 | ./regen.sh |
ebb1f61c |
33 | ./configure \ |
34 | --with-afs-libs=/usr/lib/afs \ |
35 | --with-afs-headers=/usr/include/afs \ |
36 | --with-apache-headers=/usr/include/apache2 \ |
37 | --with-apxs=/usr/bin/apxs2 |
bce7d4d9 |
38 | make clean |
ebb1f61c |
39 | $(MAKE) |
40 | mv .libs/mod_waklog.so .; true |
ebb1f61c |
41 | dh_installdirs |
42 | mkdir -p debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
43 | mkdir -p debian/libapache2-mod-waklog/etc/apache2/mods-available |
44 | cp mod_waklog.so debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
45 | cp debian/waklog.load debian/libapache2-mod-waklog/etc/apache2/mods-available |
46 | |
47 | clean: |
48 | dh_testdir |
49 | dh_testroot |
50 | rm -rf build-stamp .libs |
51 | -$(MAKE) clean |
52 | dh_clean --exclude ./_darcs/current/Makefile.orig --exclude ./Makefile.orig |
53 | |
54 | binary-indep: |
bb8c0b77 |
55 | |
ebb1f61c |
56 | binary-arch: apache13 apache20 |
bb8c0b77 |
57 | dh_testdir |
58 | dh_testroot |
59 | dh_installchangelogs |
60 | dh_installdocs |
61 | dh_installexamples |
bb8c0b77 |
62 | dh_installman |
63 | dh_link |
ebb1f61c |
64 | #dh_strip |
bb8c0b77 |
65 | dh_compress |
66 | dh_fixperms |
bb8c0b77 |
67 | dh_installdeb |
68 | dh_shlibdeps |
69 | dh_gencontrol |
70 | dh_md5sums |
71 | dh_builddeb |
72 | |
73 | binary: binary-indep binary-arch |
74 | .PHONY: build clean binary-indep binary-arch binary install configure |