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 \ |
ebb1f61c |
20 | --with-apxs=/usr/bin/apxs2 |
bce7d4d9 |
21 | make clean |
ebb1f61c |
22 | $(MAKE) |
23 | mv .libs/mod_waklog.so .; true |
ebb1f61c |
24 | dh_installdirs |
25 | mkdir -p debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
26 | mkdir -p debian/libapache2-mod-waklog/etc/apache2/mods-available |
27 | cp mod_waklog.so debian/libapache2-mod-waklog/usr/lib/apache2/modules/ |
28 | cp debian/waklog.load debian/libapache2-mod-waklog/etc/apache2/mods-available |
29 | |
30 | clean: |
31 | dh_testdir |
32 | dh_testroot |
33 | rm -rf build-stamp .libs |
34 | -$(MAKE) clean |
35 | dh_clean --exclude ./_darcs/current/Makefile.orig --exclude ./Makefile.orig |
36 | |
37 | binary-indep: |
bb8c0b77 |
38 | |
20d26719 |
39 | binary-arch: apache20 |
bb8c0b77 |
40 | dh_testdir |
41 | dh_testroot |
42 | dh_installchangelogs |
43 | dh_installdocs |
44 | dh_installexamples |
bb8c0b77 |
45 | dh_installman |
46 | dh_link |
20d26719 |
47 | dh_strip |
bb8c0b77 |
48 | dh_compress |
49 | dh_fixperms |
bb8c0b77 |
50 | dh_installdeb |
51 | dh_shlibdeps |
52 | dh_gencontrol |
53 | dh_md5sums |
54 | dh_builddeb |
55 | |
56 | binary: binary-indep binary-arch |
57 | .PHONY: build clean binary-indep binary-arch binary install configure |