File: rules

package info (click to toggle)
libapache2-mod-macro 1.1.4-3.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 92 kB
  • ctags: 62
  • sloc: ansic: 589; makefile: 35
file content (44 lines) | stat: -rwxr-xr-x 814 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_COMPAT=4
export DH_OPTIONS=

CFLAGS+=$(if $(findstring debug,$(DEB_BUILD_OPTIONS)),-g,)
CFLAGS+=$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
APXS=/usr/bin/apxs2

build: build-stamp
build-stamp:
	dh_testdir
	$(APXS) -c mod_macro.c
	touch $@
clean:
	dh_testdir
	dh_testroot
	dh_clean .libs/* mod_macro.l* mod_macro.s* mod_macro.o build-stamp install-stamp
	$(RM) -r .libs

binary-indep: DH_OPTIONS=-i
binary-indep: build

binary-arch: DH_OPTIONS=-a
binary-arch: build
	dh_testdir
	dh_testroot
	dh_install
	dh_installdocs
	dh_installchangelogs
	dh_installexamples
	dh_installdeb
	dh_fixperms
	dh_shlibdeps
	dh_compress
	dh_strip
	dh_md5sums
	dh_gencontrol
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean build