File: rules

package info (click to toggle)
eximdoc4 4.80-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,248 kB
  • sloc: perl: 781; makefile: 185; xml: 68; sh: 37
file content (86 lines) | stat: -rwxr-xr-x 2,043 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
#!/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

UPSTREAMVERSION := $(shell dpkg-parsechangelog | \
	sed -n '/^Version: /{s/^Version: \(.\+\)-[^-]\+/\1/;p;}')

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
	cp -a doc-docbook build-tree

	cd build-tree && \
		$(MAKE) DOCBOOK2TEXI=docbook2x-texi os-fixup && \
		$(MAKE) DOCBOOK2TEXI=docbook2x-texi spec.xml filter.xml \
			spec.info filter.info
	mkdir build-tree/html
	cd build-tree && \
		$(CURDIR)/website/script/gen.pl \
		--spec $(CURDIR)/build-tree/spec.xml \
		--filter $(CURDIR)/build-tree/filter.xml \
		--latest $(UPSTREAMVERSION) --tmpl $(CURDIR)/website/templates \
		--docroot $(CURDIR)/build-tree/html
	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: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install


# 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_installdocs -i
	dh_installexamples -i
	dh_installmenu -i
	dh_installinfo -i
	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


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