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 99 100 101 102
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PACKAGE=$(shell dh_listpackages)
ifndef PERL
PERL = /usr/bin/perl
endif
ifndef DESTDIR
DESTDIR=..
endif
TMP =`pwd`/debian/$(PACKAGE)
OPTIMIZE = -O2 -Wall
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
OPTIMIZE += -g
endif
configure: configure-stamp
configure-stamp:
dh_testdir
$(PERL) Makefile.PL --platform=debian --nocpan INSTALLDIRS=vendor
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE) OPTIMIZE="$(OPTIMIZE)"
# # Generate man pages for the major applications
cd Ifeffit/lib/athena.doc ; ./make_doc --man
cd Ifeffit/lib/artemis.doc ; ./make_doc --man
cd hephaestus_parts ; ./make_doc --man
cd examples && \
tar -czf artemis_examples.tar.gz artemis && \
tar -czf athena_examples.tar.gz athena
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
-$(MAKE) realclean
rm -f */*.db
rm -f */Makefile
rm -f athena.pl artemis.pl diana.pl hephaestus.pl athena artemis diana hephaestus
rm -f athena_parts/rc.pl artemis_parts/rc.pl diana_parts/rc.pl hephaestus_parts/hephaestus.1
rm -f Ifeffit/lib/athena/athenarc Ifeffit/lib/athena/athena.ini Ifeffit/lib/athena/athenarcw Ifeffit/lib/athena.doc/athena.1
rm -f Ifeffit/lib/artemis/artemisrc Ifeffit/lib/artemis/artemis.ini Ifeffit/lib/artemis/artemisrcw Ifeffit/lib/artemis.doc/artemis.1
rm -f examples/*.tar.gz
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/horae.
$(MAKE) install PREFIX=$(CURDIR)/debian/horae/usr INSTALLDIRS=vendor
rm -rf $(CURDIR)/debian/horae/usr/share/man/man3
rm -rf $(CURDIR)/debian/horae/usr/lib/perl5
dh_install debian/athena.xpm usr/share/pixmaps
dh_install debian/artemis.xpm usr/share/pixmaps
dh_install debian/hephaestus.xpm usr/share/pixmaps
dh_install debian/athena.desktop usr/share/applications
dh_install debian/artemis.desktop usr/share/applications
dh_install debian/hephaestus.desktop usr/share/applications
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installmenu
dh_installman
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch:
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
|