| 1 |
#!/usr/bin/make -f |
|---|
| 2 |
|
|---|
| 3 |
#export DH_VERBOSE=1 |
|---|
| 4 |
|
|---|
| 5 |
export DH_ALWAYS_EXCLUDE=.svn:SUSE:adodb |
|---|
| 6 |
|
|---|
| 7 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
|---|
| 8 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
|---|
| 9 |
|
|---|
| 10 |
CFLAGS += -O2 -Wall -fno-strict-aliasing |
|---|
| 11 |
LFSFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 |
|---|
| 12 |
|
|---|
| 13 |
# Enable IEEE-conformant floating point math on alphas (not the default) |
|---|
| 14 |
ifeq (alpha-linux-gnu,$(DEB_HOST_GNU_TYPE)) |
|---|
| 15 |
CFLAGS += -mieee |
|---|
| 16 |
endif |
|---|
| 17 |
|
|---|
| 18 |
ifeq ($(DEB_HOST_GNU_TYPE), $(findstring $(DEB_HOST_GNU_TYPE), ia64-linux-gnu powerpc64-linux-gnu)) |
|---|
| 19 |
CFLAGS += -g |
|---|
| 20 |
else |
|---|
| 21 |
CFLAGS += -gstabs |
|---|
| 22 |
endif |
|---|
| 23 |
|
|---|
| 24 |
include /usr/share/quilt/quilt.make |
|---|
| 25 |
|
|---|
| 26 |
debian/control: debian-templates-control |
|---|
| 27 |
|
|---|
| 28 |
debian-templates-%: |
|---|
| 29 |
(cd debian/; \ |
|---|
| 30 |
$(MAKE) -f Makefile.templates $*) |
|---|
| 31 |
|
|---|
| 32 |
build: patch build-stamp |
|---|
| 33 |
|
|---|
| 34 |
build-stamp: |
|---|
| 35 |
dh_testdir |
|---|
| 36 |
|
|---|
| 37 |
( cd tools/daemon; DAEMON_OPTIONS="$(DEB_BUILD_OPTIONS),nostrip" $(MAKE) ispcp_daemon CFLAGS="$(CFLAGS)") |
|---|
| 38 |
|
|---|
| 39 |
touch $@ |
|---|
| 40 |
|
|---|
| 41 |
clean: unpatch |
|---|
| 42 |
dh_testdir |
|---|
| 43 |
dh_testroot |
|---|
| 44 |
rm -f build-stamp |
|---|
| 45 |
|
|---|
| 46 |
#INST_PREF=$(CURDIR)/debian/tmp $(MAKE) uninstall |
|---|
| 47 |
( cd tools; $(MAKE) uninstall) |
|---|
| 48 |
$(RM) -r debian/tmp |
|---|
| 49 |
|
|---|
| 50 |
dh_clean |
|---|
| 51 |
|
|---|
| 52 |
install: build |
|---|
| 53 |
dh_testdir |
|---|
| 54 |
dh_testroot |
|---|
| 55 |
dh_clean -k |
|---|
| 56 |
dh_installdirs |
|---|
| 57 |
|
|---|
| 58 |
INST_PREF=$(CURDIR)/debian/tmp $(MAKE) install |
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
binary-s-%: |
|---|
| 62 |
dh_testdir |
|---|
| 63 |
dh_testroot |
|---|
| 64 |
dh_installchangelogs -$* CHANGELOG |
|---|
| 65 |
dh_installdocs -$* docs/VHCS_CHANGELOG docs/README |
|---|
| 66 |
dh_install -$* |
|---|
| 67 |
[ $* = i ] && $(RM) -r debian/ispcp-omega-gui/var/www/ispcp/gui/tools/{filemanager,pma,webmail} || true |
|---|
| 68 |
dh_installdebconf -$* |
|---|
| 69 |
dh_installinit -$* |
|---|
| 70 |
dh_installman -$* |
|---|
| 71 |
dh_installcron -$* |
|---|
| 72 |
dh_installlogrotate -$* |
|---|
| 73 |
dh_installlogcheck -$* |
|---|
| 74 |
dh_link -$* |
|---|
| 75 |
dh_strip -$* |
|---|
| 76 |
dh_compress -$* |
|---|
| 77 |
dh_fixperms -$* |
|---|
| 78 |
dh_perl -$* debian/ispcp-omega-backend/var/www/ispcp/engine/{ispcp_common_methods.pl,traffic/ispcp-vrl-traff,awstats/awstats_buildstaticpages.pl,setup/ispcp-setup,ispcp-dmn-mngr} |
|---|
| 79 |
dh_installdeb -$* |
|---|
| 80 |
dh_shlibdeps -$* |
|---|
| 81 |
dh_gencontrol -$* |
|---|
| 82 |
dh_md5sums -$* |
|---|
| 83 |
dh_builddeb -$* |
|---|
| 84 |
|
|---|
| 85 |
binary-indep: install binary-s-i |
|---|
| 86 |
|
|---|
| 87 |
binary-arch: build install binary-s-a |
|---|
| 88 |
|
|---|
| 89 |
binary: binary-indep binary-arch |
|---|
| 90 |
.PHONY: build clean binary-indep binary-arch binary install debian-templates-% binary-s-% |
|---|