File: rules

package info (click to toggle)
horae 066-3
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 17,272 kB
  • ctags: 1,656
  • sloc: perl: 64,718; lisp: 744; sh: 82; makefile: 67; ansic: 35
file content (89 lines) | stat: -rwxr-xr-x 2,410 bytes parent folder | download
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE=$(shell dh_listpackages)

ifndef PERL
PERL = /usr/bin/perl
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)
	# 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
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f */*.db 
	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
	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