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
|
#!/usr/bin/make -f
package=xtide
build:
$(checkdir)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
extracxxflags=-g ./configure
else
./configure
endif
make
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS = -O2 -g -I$(LIBTCD_DIR)
endif
cd tcd-utils; make build_tide_db
cd tcd-utils; make restore_tide_db
./tcd-utils/build_tide_db harmonics-initial.tcd debian/harmonics-initial.txt
clean:
$(checkdir)
-rm -f build
-make clean
-rm Makefile Makefile.bak
-rm config.log config.status config.cache
-rm harmonics.tcd
cd tcd-utils; make clean
dh_clean
binary-indep: checkroot build
$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: checkroot build
$(checkdir)
-rm -rf debian/tmp
dh_installdirs usr/bin usr/sbin usr/share/$(package) etc/logrotate.d
install -m 755 xtide tide debian/tmp/usr/bin
install -m 755 tcd-utils/build_tide_db tcd-utils/restore_tide_db debian/tmp/usr/bin
install -m 755 xttpd debian/tmp/usr/sbin
install -m 644 harmonics-initial.tcd debian/tmp/usr/share/$(package)
install -m 644 debian/xtide.conf debian/tmp/etc/xtide.conf
install -m 644 debian/logrotate debian/tmp/etc/logrotate.d/xttpd
dh_installdocs DOCUMENTATION/quick_install.txt DOCUMENTATION/verbose_docs.txt
# dh_installexamples
dh_installchangelogs
dh_installmenu
dh_installmanpages -pxtide
dh_installinit -pxtide --init-script=xttpd
dh_installcron
dh_strip
dh_compress
dh_fixperms
# dh_suidregister
dh_shlibdeps
dh_gencontrol
dh_makeshlibs
dh_installdeb
dh_md5sums
dh_builddeb
define checkdir
test -f debian/rules
endef
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|