File: rules

package info (click to toggle)
libapache-mod-auth-kerb 5.4-2.4
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 636 kB
  • sloc: ansic: 3,236; makefile: 92; sh: 4
file content (98 lines) | stat: -rwxr-xr-x 2,121 bytes parent folder | download | duplicates (4)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)


include /usr/share/quilt/quilt.make

CFLAGS = -Wall -g

ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

## -------- BUILD TARGETS

build: build-stamp

build-stamp: patch
	dh_testdir
	touch build-stamp


## -------- BUILD TARGETS
build-apache20:
	dh_testdir
	#-$(MAKE) clean
	[ ! -f Makefile ] || $(MAKE) clean
	autoconf
	./configure --without-krb4 APXS=/usr/bin/apxs2 --with-apache=/usr/bin/apache2 CFLAGS="-DGSS_C_DELEG_FLAG"
	make

## -------- INSTALL TARGETS
apache20: build-apache20
	mkdir -p $(CURDIR)/debian/libapache2-mod-auth-kerb/usr/share/doc/libapache2-mod-auth-kerb
	install -m 644 $(CURDIR)/README \
		$(CURDIR)/debian/libapache2-mod-auth-kerb/usr/share/doc/libapache2-mod-auth-kerb/

## -------- CLEAN TARGETS

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp 
	rm -f config.log config.status

	#-$(MAKE) clean
	[ ! -f Makefile ] || $(MAKE) clean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	rm -f config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	rm -f config.guess
endif
	rm -fr src/.libs spnegokrb5/.libs
	rm -f debian/files
	dh_clean -k

## -------- INSTALL TARGETS

install: install-stamp
intall-stamp:
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

# Build architecture-independent files here.
binary-indep: 
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build apache20
	dh_testdir -a 
	dh_testroot -a
	dh_apache2
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch binary-indep
.PHONY: binary-indep binary-arch build-apache20 binary install patch unpatch