| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
PACKAGE=$(shell dh_listpackages) |
| 7 |
|
| 8 |
ifndef PERL |
| 9 |
PERL = /usr/bin/perl |
| 10 |
endif |
| 11 |
|
| 12 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 13 |
|
| 14 |
configure: configure-stamp |
| 15 |
configure-stamp: |
| 16 |
dh_testdir |
| 17 |
|
| 18 |
$(PERL) Build.PL destdir=$(TMP) |
| 19 |
touch configure-stamp |
| 20 |
|
| 21 |
|
| 22 |
build: build-arch build-indep |
| 23 |
|
| 24 |
build-arch: |
| 25 |
|
| 26 |
build-indep: build-stamp |
| 27 |
|
| 28 |
build-stamp: configure-stamp |
| 29 |
dh_testdir |
| 30 |
./Build build --verbose=1 |
| 31 |
./Build test --verbose=1 |
| 32 |
|
| 33 |
cd lib/Ifeffit/lib/artemis.doc ; ./make_doc --man |
| 34 |
cd examples && \ |
| 35 |
tar -czf artemis_examples.tar.gz artemis && \ |
| 36 |
tar -czf athena_examples.tar.gz athena |
| 37 |
touch build-stamp |
| 38 |
|
| 39 |
clean: |
| 40 |
dh_testdir |
| 41 |
dh_testroot |
| 42 |
dh_clean build-stamp configure-stamp |
| 43 |
[ ! -f Build ] || ./Build realclean --verbose=1 |
| 44 |
|
| 45 |
|
| 46 |
rm -f athena_parts/rc.pl artemis_parts/rc.pl |
| 47 |
rm -f lib/Ifeffit/lib/athena/athenarc \ |
| 48 |
lib/Ifeffit/lib/athena/athena.ini \ |
| 49 |
lib/Ifeffit/lib/athena/athenarcw |
| 50 |
rm -f lib/Ifeffit/lib/artemis/artemisrc \ |
| 51 |
lib/Ifeffit/lib/artemis/artemis.ini \ |
| 52 |
lib/Ifeffit/lib/artemis/artemisrcw \ |
| 53 |
lib/Ifeffit/lib/artemis.doc/artemis.1 \ |
| 54 |
lib/Ifeffit/lib/artemis.doc/artemisdoc.pod |
| 55 |
rm -f examples/*.tar.gz |
| 56 |
dh_clean |
| 57 |
|
| 58 |
install: build |
| 59 |
dh_testdir |
| 60 |
dh_testroot |
| 61 |
dh_prep |
| 62 |
dh_installdirs |
| 63 |
|
| 64 |
|
| 65 |
./Build install --installdirs vendor --verbose=1 |
| 66 |
rm -rf $(CURDIR)/debian/horae/usr/share/man/man3 |
| 67 |
rm -rf $(CURDIR)/debian/horae/usr/lib |
| 68 |
rm -rf $(CURDIR)/debian/horae/usr/share/perl5/WWWBrowser.pm |
| 69 |
|
| 70 |
iconv -f ISO-8859-1 -t UTF-8 $(CURDIR)/debian/horae/usr/share/perl5/Ifeffit/Tools.pm > Tools.pm |
| 71 |
mv -f Tools.pm $(CURDIR)/debian/horae/usr/share/perl5/Ifeffit/Tools.pm |
| 72 |
|
| 73 |
mv $(CURDIR)/debian/horae/usr/bin/ifeffit_shell.pl \ |
| 74 |
$(CURDIR)/debian/horae/usr/bin/ifeffit_shell |
| 75 |
mv $(CURDIR)/debian/horae/usr/share/man/man1/ifeffit_shell.pl.1p \ |
| 76 |
$(CURDIR)/debian/horae/usr/share/man/man1/ifeffit_shell.1p |
| 77 |
dh_install debian/athena.xpm usr/share/pixmaps |
| 78 |
dh_install debian/artemis.xpm usr/share/pixmaps |
| 79 |
dh_install debian/hephaestus.xpm usr/share/pixmaps |
| 80 |
dh_install debian/athena.desktop usr/share/applications |
| 81 |
dh_install debian/artemis.desktop usr/share/applications |
| 82 |
dh_install debian/hephaestus.desktop usr/share/applications |
| 83 |
|
| 84 |
|
| 85 |
binary-indep: build install |
| 86 |
dh_testdir |
| 87 |
dh_testroot |
| 88 |
dh_installdocs |
| 89 |
dh_installexamples |
| 90 |
dh_installman |
| 91 |
dh_installchangelogs |
| 92 |
dh_link |
| 93 |
dh_compress |
| 94 |
dh_fixperms |
| 95 |
dh_installdeb |
| 96 |
dh_perl |
| 97 |
dh_gencontrol |
| 98 |
dh_md5sums |
| 99 |
dh_builddeb |
| 100 |
|
| 101 |
|
| 102 |
binary-arch: |
| 103 |
|
| 104 |
|
| 105 |
binary: binary-indep binary-arch |
| 106 |
.PHONY: build clean binary-indep binary-arch binary install configure |