File: rules

package info (click to toggle)
mozilla-mozgest 1.5.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 280 kB
  • ctags: 11
  • sloc: makefile: 42; sh: 34
file content (80 lines) | stat: -rwxr-xr-x 1,585 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
#!/usr/bin/make -f
# Inspired by mozilla-locale-da who said in the original:
# ######################################################
# Inspired by (and largely copied from) the debian/rules files in
# mozilla-locale-ga-es.

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


ID="{FFA36170-80B1-4535-B0E3-A4569E497DD0}"

mozilladir=/usr/lib/mozilla

configure: configure-stamp
configure-stamp:
	dh_testdir

	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	mkdir -p temp
	unzip -o -d temp *.xpi
	
#	cd temp/chrome && \
#	unzip -o mozgest.jar && \
#	rm -f mozgest.jar && \
#	patch -p0 < ../../debian/no_uninstall.patch
#
#	cd temp/chrome && \
#	zip -r ./mozgest.jar content locale skin
	
	cd temp && rm -rf install.js install
	cd temp && patch -p0 < ../debian/icedove2_fix.patch

	
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	-rm -rf temp
#	-rm -rf debian/50-mozgest
	-rm -rf mozgest.jar

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_install


# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs -i debian/MPL-1.1.txt debian/faqs.html 
	dh_installchangelogs -i
	dh_link -i 
	dh_compress -XMPL -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
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure