File: rules

package info (click to toggle)
fortunes-debian-hints 1.99
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 440 kB
  • sloc: makefile: 64
file content (79 lines) | stat: -rwxr-xr-x 1,761 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
#!/usr/bin/make -f

# en is default language, so no additional declaration is necasarry
LANGS = cs de es fr it ja pt sk sv tr vi zh_CN zh_TW

build:
	dh_testdir
	strfile hints
	po4a --previous \
	     --msgid-bugs-address "Kartik Mistry <kartik@debian.org>" \
	     po4a.cfg
	strfile hints-cs
	strfile hints-de
	strfile hints-es
	strfile hints-fr
	strfile hints-it
	strfile hints-ja
	strfile hints-pt
	strfile hints-sk
	strfile hints-sv
	strfile hints-tr
	strfile hints-vi
	strfile hints-zh_CN
	strfile hints-zh_TW

build-arch: build
build-indep: build

install: build
	dh_testdir
	dh_testroot
	dh_installdirs
	dh_prep

	install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/games/fortunes
	install -m 0644 hints \
		$(CURDIR)/debian/tmp/usr/share/games/fortunes/debian-hints
	install -m 0644 hints.dat \
		$(CURDIR)/debian/tmp/usr/share/games/fortunes/debian-hints.dat

	$(foreach lang,$(LANGS),\
		install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang) ; \
		install -m 0644 hints-$(lang) \
			$(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang)/debian-hints ; \
		install -m 0644 hints-$(lang).dat \
			$(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang)/debian-hints.dat ; \
	)

clean:
	dh_testdir
	dh_testroot
	rm -f *.dat

	po4a --previous --rm-translations --rm-backups \
             --msgid-bugs-address "Kartik Mistry <kartik@debian.org>" \
               po4a.cfg

	dh_clean

binary-arch:

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdirs -i
	dh_install -i
	dh_link -i
	dh_installdocs -i
	dh_installchangelogs -i
	dh_compress -i
	dh_fixperms -i
	dh_md5sums -i
	dh_gencontrol -i
	dh_installdeb -i
	dh_builddeb -i

binary: binary-indep

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