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
|
#!/usr/bin/make -f
export DH_COMPAT=4
APACHE13=$(CURDIR)/debian/libapache-mod-auth-mysql
APACHE2=$(CURDIR)/debian/libapache2-mod-auth-mysql
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
configure: configure-stamp
configure-stamp:
dh_testdir
# Configuration commands
./configure --enable-apache2
touch configure-stamp
clean:
dh_testdir
dh_testroot
dh_clean -A
-make clean
rm -f config.status config.log config.h
rm -f configure-stamp build-stamp
build-indep: build
build-arch: build
build: build-stamp
build-stamp: configure
dh_testdir
$(MAKE)
touch build-stamp
install: build
dh_testdir
dh_testroot
dh_installdirs -A
# the makefile uses apxs, which doesn't work so well for us, so...
install -s -m 644 apache13_mod_auth_mysql.so $(APACHE13)/usr/lib/apache/1.3/mod_auth_mysql.so
install -m 644 500mod_auth_mysql.info $(APACHE13)/usr/lib/apache/1.3/
install -s -m 644 apache2_mod_auth_mysql.so $(APACHE2)/usr/lib/apache2/modules/mod_auth_mysql.so
install -m 644 auth_mysql.load $(APACHE2)/etc/apache2/mods-available
binary: binary-arch binary-indep
binary-indep: install
binary-arch: install
dh_testdir
dh_testroot
dh_installdocs -A
dh_installchangelogs -A
dh_compress -A
dh_installdeb -A
dh_shlibdeps -A
dh_gencontrol -A
dh_md5sums -A
dh_builddeb -A
.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install
|