Makefile.inc 6.88 KB
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1
PHP_IGNORES = download-skins2 download-skins2-go skins skins_upload skins_old
2
SUBDIR = contest releases stats
3

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
4
PHP_FILES := index features libvlc screenshots skineditor skineditor_update \
5
             skins skins_upload streaming privacy \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
6
             download-altlinux download-android download-archlinux download-beos download-crux download-chromeos download-debian download-eyetv download-familiar download-fedora download-freebsd download-gentoo download-ios download-appletv download-winrt download-linupy download-macosx download-maemo download-redhat download-skins2-go download-skins download-slackware download-sources download-suse download-syllable download-ubuntu download-wince download-windows download-windowsphone \
Christoph Miebach's avatar
Christoph Miebach committed
7
             index.af     download-windows.af     download-macosx.af    \
8
             index.an     download-windows.an     download-macosx.an    \
Christoph Miebach's avatar
Christoph Miebach committed
9
             index.ar     download-windows.ar     download-macosx.ar    \
Christoph Miebach's avatar
Christoph Miebach committed
10
             index.ast    download-windows.ast    download-macosx.ast   \
Christoph Miebach's avatar
Christoph Miebach committed
11
             index.be     download-windows.be     download-macosx.be    \
12
             index.bg     download-windows.bg     download-macosx.bg    \
Christoph Miebach's avatar
Christoph Miebach committed
13
             index.bn     download-windows.bn     download-macosx.bn    \
14
             index.bn-IN  download-windows.bn-IN  download-macosx.bn-IN \
Christoph Miebach's avatar
Christoph Miebach committed
15
             index.bs     download-windows.bs     download-macosx.bs    \
16
             index.ca     download-windows.ca     download-macosx.ca    \
17
             index.co     download-windows.co     download-macosx.co    \
Christoph Miebach's avatar
Christoph Miebach committed
18
             index.cs     download-windows.cs     download-macosx.cs    \
Christoph Miebach's avatar
Christoph Miebach committed
19
             index.cy     download-windows.cy     download-macosx.cy    \
20
             index.da     download-windows.da     download-macosx.da    \
Christoph Miebach's avatar
Christoph Miebach committed
21
             index.de     download-windows.de     download-macosx.de    \
22
             index.de-LU  download-windows.de-LU  download-macosx.de-LU \
Christoph Miebach's avatar
Christoph Miebach committed
23
             index.dv     download-windows.dv     download-macosx.dv    \
24
             index.el     download-windows.el     download-macosx.el    \
25
             index.en-GB  download-windows.en-GB  download-macosx.en-GB \
26
             index.es     download-windows.es     download-macosx.es    \
27
             index.es-MX  download-windows.es-MX  download-macosx.es-MX \
Christoph Miebach's avatar
Christoph Miebach committed
28
             index.et     download-windows.et     download-macosx.et    \
Christoph Miebach's avatar
Christoph Miebach committed
29
             index.fa     download-windows.fa     download-macosx.fa    \
Christoph Miebach's avatar
Christoph Miebach committed
30
             index.fi     download-windows.fi     download-macosx.fi    \
Christoph Miebach's avatar
Christoph Miebach committed
31
             index.fo     download-windows.fo     download-macosx.fo    \
Christoph Miebach's avatar
Christoph Miebach committed
32
             index.fr     download-windows.fr     download-macosx.fr    \
Christoph Miebach's avatar
Christoph Miebach committed
33
             index.fy     download-windows.fy     download-macosx.fy    \
Christoph Miebach's avatar
Christoph Miebach committed
34 35
             index.gd     download-windows.gd     download-macosx.gd    \
             index.gl     download-windows.gl     download-macosx.gl    \
36
             index.gu     download-windows.gu     download-macosx.gu    \
Christoph Miebach's avatar
Christoph Miebach committed
37 38
             index.he     download-windows.he     download-macosx.he    \
             index.hi     download-windows.hi     download-macosx.hi    \
Christoph Miebach's avatar
Christoph Miebach committed
39
             index.hr     download-windows.hr     download-macosx.hr    \
Christoph Miebach's avatar
Christoph Miebach committed
40
             index.hu     download-windows.hu     download-macosx.hu    \
41
             index.id     download-windows.id     download-macosx.id    \
42
             index.is     download-windows.is     download-macosx.is    \
43
             index.it     download-windows.it     download-macosx.it    \
Christoph Miebach's avatar
Christoph Miebach committed
44
             index.ja     download-windows.ja     download-macosx.ja    \
Christoph Miebach's avatar
Christoph Miebach committed
45
             index.ka     download-windows.ka     download-macosx.ka    \
Christoph Miebach's avatar
Christoph Miebach committed
46
             index.km     download-windows.km     download-macosx.km    \
Christoph Miebach's avatar
Christoph Miebach committed
47
             index.kn     download-windows.kn     download-macosx.kn    \
Christoph Miebach's avatar
Christoph Miebach committed
48
             index.ko     download-windows.ko     download-macosx.ko    \
49
             index.ky     download-windows.ky     download-macosx.ky    \
Christoph Miebach's avatar
Christoph Miebach committed
50
             index.lo     download-windows.lo     download-macosx.lo    \
Christoph Miebach's avatar
Christoph Miebach committed
51
             index.lt     download-windows.lt     download-macosx.lt    \
52
             index.lv     download-windows.lv     download-macosx.lv    \
Christoph Miebach's avatar
Christoph Miebach committed
53
             index.mk     download-windows.mk     download-macosx.mk    \
Christoph Miebach's avatar
Christoph Miebach committed
54
             index.ml     download-windows.ml     download-macosx.ml    \
55
             index.mn-MN  download-windows.mn-MN  download-macosx.mn-MN \
Christoph Miebach's avatar
Christoph Miebach committed
56
             index.mr     download-windows.mr     download-macosx.mr    \
Christoph Miebach's avatar
Christoph Miebach committed
57
             index.ms     download-windows.ms     download-macosx.ms    \
58
             index.my     download-windows.my     download-macosx.my    \
Christoph Miebach's avatar
Christoph Miebach committed
59 60
             index.nb     download-windows.nb     download-macosx.nb    \
             index.nl     download-windows.nl     download-macosx.nl    \
61
             index.or     download-windows.or     download-macosx.or    \
Christoph Miebach's avatar
Christoph Miebach committed
62
             index.pl     download-windows.pl     download-macosx.pl    \
63
             index.pt-BR  download-windows.pt-BR  download-macosx.pt-BR \
Christoph Miebach's avatar
Christoph Miebach committed
64
             index.pt     download-windows.pt     download-macosx.pt    \
Christoph Miebach's avatar
Christoph Miebach committed
65
             index.ro     download-windows.ro     download-macosx.ro    \
Christoph Miebach's avatar
Christoph Miebach committed
66
             index.ru     download-windows.ru     download-macosx.ru    \
Christoph Miebach's avatar
Christoph Miebach committed
67
             index.si     download-windows.si     download-macosx.si    \
Christoph Miebach's avatar
Christoph Miebach committed
68
             index.sk     download-windows.sk     download-macosx.sk    \
Christoph Miebach's avatar
Christoph Miebach committed
69
             index.sl     download-windows.sl     download-macosx.sl    \
Christoph Miebach's avatar
Christoph Miebach committed
70
             index.sq     download-windows.sq     download-macosx.sq    \
71
             index.sr     download-windows.sr     download-macosx.sr    \
Christoph Miebach's avatar
Christoph Miebach committed
72
             index.sv     download-windows.sv     download-macosx.sv    \
Christoph Miebach's avatar
Christoph Miebach committed
73
             index.ta     download-windows.ta     download-macosx.ta    \
74
             index.te     download-windows.te     download-macosx.te    \
Christoph Miebach's avatar
Christoph Miebach committed
75 76
             index.th     download-windows.th     download-macosx.th    \
             index.tr     download-windows.tr     download-macosx.tr    \
77
             index.tt     download-windows.tt     download-macosx.tt    \
78
             index.uk     download-windows.uk     download-macosx.uk    \
79
             index.ur     download-windows.ur     download-macosx.ur    \
80
             index.uz     download-windows.uz     download-macosx.uz    \
Christoph Miebach's avatar
Christoph Miebach committed
81
             index.vi     download-windows.vi     download-macosx.vi    \
Christoph Miebach's avatar
Christoph Miebach committed
82
             index.zh     download-windows.zh     download-macosx.zh    \
83
             index.zh-TW  download-windows.zh-TW  download-macosx.zh-TW \
84
                          download-windows        download-macosx
85 86 87 88 89 90 91 92 93 94

download-windows.%.php: download-windows.php $(ROOT)/locale/%/LC_MESSAGES/website.po
	rm -f ./$@ && sed -e "s/language = \"\"/language = \"$*\"/" download-windows.php > ./$@;
	msgfmt -c -v -o $(ROOT)/locale/$*/LC_MESSAGES/website.mo $(ROOT)/locale/$*/LC_MESSAGES/website.po

download-macosx.%.php: download-macosx.php $(ROOT)/locale/%/LC_MESSAGES/website.po
	rm -f ./$@ && sed -e "s/language = \"\"/language = \"$*\"/" download-macosx.php > ./$@;
	msgfmt -c -v -o $(ROOT)/locale/$*/LC_MESSAGES/website.mo $(ROOT)/locale/$*/LC_MESSAGES/website.po