Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # en is default language, so no additional declaration is necasarry
4 LANGS = ar cs de es fr it ja nl pt ro sk sv tr vi zh_CN zh_TW
5
6 MSGID_BUGS_EMAIL = Kartik Mistry <kartik@debian.org>
7 PO4A_OPTS = --msgid-bugs-address "$(MSGID_BUGS_EMAIL)" --previous
8 PO4A = po4a $(PO4A_OPTS)
9
10 update-po:
11 $(PO4A) --no-translations --force po4a.cfg
12
13 %:
14 dh $@
15
16 override_dh_auto_build:
17 strfile hints
18 $(PO4A) po4a.cfg
19 strfile hints-ar
20 strfile hints-cs
21 strfile hints-de
22 strfile hints-es
23 strfile hints-fr
24 strfile hints-it
25 strfile hints-ja
26 strfile hints-nl
27 strfile hints-pt
28 strfile hints-ro
29 strfile hints-sk
30 strfile hints-sv
31 strfile hints-tr
32 strfile hints-vi
33 strfile hints-zh_CN
34 strfile hints-zh_TW
35
36 override_dh_auto_install:
37 install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/games/fortunes
38 install -m 0644 hints \
39 $(CURDIR)/debian/tmp/usr/share/games/fortunes/debian-hints
40 install -m 0644 hints.dat \
41 $(CURDIR)/debian/tmp/usr/share/games/fortunes/debian-hints.dat
42
43 $(foreach lang,$(LANGS),\
44 install -m 0755 -d $(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang) ; \
45 install -m 0644 hints-$(lang) \
46 $(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang)/debian-hints ; \
47 install -m 0644 hints-$(lang).dat \
48 $(CURDIR)/debian/tmp/usr/share/games/fortunes/$(lang)/debian-hints.dat ; \
49 )
50
51 override_dh_auto_clean:
52 dh_auto_clean
53 rm -f *.dat
54 $(PO4A) --rm-translations --rm-backups po4a.cfg