File: rules

package info (click to toggle)
faumachine 20100527-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 53,836 kB
  • ctags: 20,552
  • sloc: ansic: 179,550; asm: 3,645; makefile: 3,611; perl: 2,103; sh: 1,529; python: 600; xml: 563; lex: 210; vhdl: 204
file content (103 lines) | stat: -rwxr-xr-x 2,073 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
96
97
98
99
100
101
102
103
#!/usr/bin/make -f
# (C) 2008-2010 FAUmachine team. GPL-2+.
#
# based on:
# 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

TARGET=$(CURDIR)/debian/tmp

patch: debian/patch-stamp

debian/patch-stamp:
	for i in debian/patches/*; do patch -p0 < $$i; done
	touch $@

unpatch:
	if [ -e debian/patch-stamp ]; then \
		for i in debian/patches/*; do \
			patch -p0 -R < $$i; \
		done; \
		$(RM) debian/patch-stamp; \
	fi

configure: configure.ac
	dh_testdir
	./autogen.sh

config.status: configure
	dh_testdir
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-build-userguide \
		--disable-prefix-search

build-stamp: debian/patch-stamp config.status
	dh_testdir
	$(MAKE)
	touch $@

build: build-stamp

mrproper: clean
	rm -f debian/copyright

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp
	cp copyright debian/copyright
	if [ -f Makefile ]; then make mrproper; else echo "No Makefile"; fi
	rm -rf debian/tmp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean
	make install DESTDIR=$(TARGET)

# nothing to do, no arch:all package built.
binary-indep: install
	dh_testdir -i
	dh_testroot -i
	dh_installdocs -i
	dh_installchangelogs -i
	dh_install -i --sourcedir=debian/tmp
	dh_compress -i --exclude=examples --exclude=.pdf
	dh_fixperms -i
	dh_installdeb -i
	dh_shlibdeps -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: install
	dh_testdir -a
	dh_testroot -a
	dh_installdocs -a
	dh_installman -a
	dh_installchangelogs -a NEWS
	dh_installmenu -a
	dh_install -a --sourcedir=debian/tmp
	dh_strip -a
	dh_link -a
	dh_compress -a --exclude=examples --exclude=.pdf
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

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