File: rules

package info (click to toggle)
eximdoc4 4.69-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,204 kB
  • ctags: 2
  • sloc: makefile: 52; sh: 23
file content (95 lines) | stat: -rwxr-xr-x 2,339 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
90
91
92
93
94
95
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. 
# GNU copyright 1997 by Joey Hess.
#
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independent
# package.

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

PACKAGEVERSION=4.69


build-arch: build-arch-stamp
build-arch-stamp:
	dh_testdir

	# Add here command to compile/build the package.

	touch build-arch-stamp

build-indep:  build-indep-stamp
build-indep-stamp:
	dh_testdir

	mkdir build-tree
	tar -C build-tree -xjf exim-html-$(PACKAGEVERSION).tar.bz2
	tar -C build-tree -xjf exim-texinfo-$(PACKAGEVERSION).tar.bz2
	cd build-tree/exim-texinfo-$(PACKAGEVERSION)/doc/ && \
		makeinfo --output exim4.info spec.texinfo
	cd build-tree/exim-texinfo-$(PACKAGEVERSION)/doc/ && \
		makeinfo --output exim4-filter.info filter.texinfo

	touch build-indep-stamp

build: build-stamp
#build-stamp: patch build-arch build-indep
build-stamp: build-arch build-indep

#clean: clean1 unpatch
clean: clean1
clean1:
	dh_testdir
	dh_testroot
	rm -rf build-stamp configure-stamp build-tree build-indep-stamp build-arch-stamp

	dh_clean

install: DH_OPTIONS=
install: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/exim4-doc.
	mv build-tree/exim-html-$(PACKAGEVERSION)/doc/html $(CURDIR)/debian/exim4-doc-html/usr/share/doc/exim4-doc-html/


# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
	dh_testdir -i
	dh_testroot -i
#	dh_installdebconf -i
	dh_installdocs -i
	dh_installexamples -i
	dh_installmenu -i
	mv build-tree/exim-texinfo-$(PACKAGEVERSION) build-tree/exim-texinfo
	dh_installinfo -i --noscripts
	mv build-tree/exim-texinfo build-tree/exim-texinfo-$(PACKAGEVERSION)
	dh_installchangelogs  -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build install

#patch: patch-stamp
#patch-stamp:
#	dpatch apply-all

#unpatch:
#	dpatch deapply-all
#	rm -rf patch-stamp debian/patched

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure \
	patch unpatch clean1