File: rules

package info (click to toggle)
mozilla-traybiff 1.2.2-13
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 508 kB
  • ctags: 310
  • sloc: ansic: 1,757; cpp: 1,029; makefile: 226; perl: 123; sh: 112
file content (96 lines) | stat: -rwxr-xr-x 1,970 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpatch/dpatch.make

PLATFORM = $(shell ./get-platform)

DOVE_VERS = $(shell icedove-config --version)

VERSION = $(shell grep "^VERSION" Makefile|sed "s/VERSION[ =]*//")

ID="{2e1b75f1-6b5a-4f1d-89b4-424f636e4fba}"

DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

clean: unpatch
	dh_testdir
	dh_testroot
	
	make MOZILLA_PLATFORM=tbird clean
	
	rm -f *.xpi
	rm -rf platform
	
	rm -f build-stamp configure-stamp
	rm -rf debian/temp
	
	# These files are generated automatically by substitution
	rm -rf debian/icedove-traybiff.dirs \
	       debian/icedove-traybiff.links \
	       debian/icedove-traybiff.install
	
	dh_clean

update_control: clean
	cat debian/control.in | sed -e "s/%dove_vers%/$(DOVE_VERS)/g" \
			      > debian/control

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	
	cat debian/icedove-traybiff.dirs.in | sed "s/ID/${ID}/g" > debian/icedove-traybiff.dirs
	cat debian/icedove-traybiff.links.in | sed "s/ID/${ID}/g" > debian/icedove-traybiff.links
	cat debian/icedove-traybiff.install.in | sed "s/ID/${ID}/g" > debian/icedove-traybiff.install
	
	dh_installdirs
	dh_install

build: configure-stamp build-stamp

configure-stamp: patch
	touch configure-stamp

build-stamp:
	mkdir debian/temp
	
	make MOZILLA_PLATFORM=tbird MOZ_TRUNK=1
	unzip -d debian/temp/tb/ mozTrayBiff-${VERSION}-tb${DOVE_VERS}-${PLATFORM}.xpi	

	touch build-stamp
	


binary-arch: install
	dh_testdir -a
	dh_testroot -a
	dh_installchangelogs -a
	dh_installdocs -a debian/NPL-1.1.txt

	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-arch binary-indep

binary-indep: 
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs -i
	dh_installdocs -i debian/NPL-1.1.txt

	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

.PHONY: binary clean install build binary-arch