Makefile.inc 5.39 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 \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
5
             skins skins_upload streaming \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
6
             download-altlinux download-android download-archlinux download-beos download-crux download-debian download-eyetv download-familiar download-fedora download-freebsd download-gentoo download-ios download-linupy download-macosx download-maemo download-mandriva download-redhat download-skins2-go download-skins download-slackware download-sources download-suse download-syllable download-ubuntu download-wince download-windows \
7
             index.an     download-windows.an     download-macosx.an    \
Christoph Miebach's avatar
Christoph Miebach committed
8
             index.ast    download-windows.ast    download-macosx.ast   \
Christoph Miebach's avatar
Christoph Miebach committed
9
             index.be     download-windows.be     download-macosx.be    \
10
             index.bg     download-windows.bg     download-macosx.bg    \
Christoph Miebach's avatar
Christoph Miebach committed
11 12
             index.bn_IN  download-windows.bn_IN  download-macosx.bn_IN \
             index.bs     download-windows.bs     download-macosx.bs    \
13
             index.ca     download-windows.ca     download-macosx.ca    \
Christoph Miebach's avatar
Christoph Miebach committed
14
             index.cs     download-windows.cs     download-macosx.cs    \
Christoph Miebach's avatar
Christoph Miebach committed
15
             index.cy     download-windows.cy     download-macosx.cy    \
16
             index.da     download-windows.da     download-macosx.da    \
Christoph Miebach's avatar
Christoph Miebach committed
17
             index.de     download-windows.de     download-macosx.de    \
18
             index.el     download-windows.el     download-macosx.el    \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
19
             index.es     download-windows.es     download-macosx.es    \
Christoph Miebach's avatar
Christoph Miebach committed
20
             index.et     download-windows.et     download-macosx.et    \
Christoph Miebach's avatar
Christoph Miebach committed
21
             index.fi     download-windows.fi     download-macosx.fi    \
Christoph Miebach's avatar
Christoph Miebach committed
22 23 24
             index.fr     download-windows.fr     download-macosx.fr    \
             index.gd     download-windows.gd     download-macosx.gd    \
             index.gl     download-windows.gl     download-macosx.gl    \
25
             index.gu     download-windows.gu     download-macosx.gu    \
Christoph Miebach's avatar
Christoph Miebach committed
26 27
             index.he     download-windows.he     download-macosx.he    \
             index.hi     download-windows.hi     download-macosx.hi    \
Christoph Miebach's avatar
Christoph Miebach committed
28
             index.hr     download-windows.hr     download-macosx.hr    \
29
             index.id     download-windows.id     download-macosx.id    \
30
             index.is     download-windows.is     download-macosx.is    \
31
             index.it     download-windows.it     download-macosx.it    \
Christoph Miebach's avatar
Christoph Miebach committed
32
             index.ja     download-windows.ja     download-macosx.ja    \
Christoph Miebach's avatar
Christoph Miebach committed
33
             index.ka     download-windows.ka     download-macosx.ka    \
Christoph Miebach's avatar
Christoph Miebach committed
34
             index.km     download-windows.km     download-macosx.km    \
Christoph Miebach's avatar
Christoph Miebach committed
35
             index.kn     download-windows.kn     download-macosx.kn    \
Christoph Miebach's avatar
Christoph Miebach committed
36
             index.ko     download-windows.ko     download-macosx.ko    \
37
             index.ky     download-windows.ky     download-macosx.ky    \
Christoph Miebach's avatar
Add lt  
Christoph Miebach committed
38
             index.lt     download-windows.lt     download-macosx.lt    \
Christoph Miebach's avatar
Christoph Miebach committed
39
             index.mk     download-windows.mk     download-macosx.mk    \
Christoph Miebach's avatar
Christoph Miebach committed
40
             index.mn_MN  download-windows.mn_MN  download-macosx.mn_MN \
Christoph Miebach's avatar
Christoph Miebach committed
41
             index.mr     download-windows.mr     download-macosx.mr    \
42
             index.my     download-windows.my     download-macosx.my    \
Christoph Miebach's avatar
Christoph Miebach committed
43 44
             index.nb     download-windows.nb     download-macosx.nb    \
             index.nl     download-windows.nl     download-macosx.nl    \
45
             index.or     download-windows.or     download-macosx.or    \
Christoph Miebach's avatar
Christoph Miebach committed
46 47 48
             index.pl     download-windows.pl     download-macosx.pl    \
             index.pt_BR  download-windows.pt_BR  download-macosx.pt_BR \
             index.pt     download-windows.pt     download-macosx.pt    \
Christoph Miebach's avatar
Christoph Miebach committed
49
             index.ro     download-windows.ro     download-macosx.ro    \
Christoph Miebach's avatar
Christoph Miebach committed
50 51
             index.ru     download-windows.ru     download-macosx.ru    \
             index.sk     download-windows.sk     download-macosx.sk    \
Christoph Miebach's avatar
Christoph Miebach committed
52
             index.sl     download-windows.sl     download-macosx.sl    \
53
             index.sr     download-windows.sr     download-macosx.sr    \
Christoph Miebach's avatar
Christoph Miebach committed
54
             index.sv     download-windows.sv     download-macosx.sv    \
55
             index.te     download-windows.te     download-macosx.te    \
Christoph Miebach's avatar
Christoph Miebach committed
56 57
             index.th     download-windows.th     download-macosx.th    \
             index.tr     download-windows.tr     download-macosx.tr    \
58
             index.uk     download-windows.uk     download-macosx.uk    \
59
             index.ur     download-windows.ur     download-macosx.ur    \
60
             index.uz     download-windows.uz     download-macosx.uz    \
Christoph Miebach's avatar
Christoph Miebach committed
61
             index.vi     download-windows.vi     download-macosx.vi    \
Christoph Miebach's avatar
Christoph Miebach committed
62 63 64
             index.wa     download-windows.wa     download-macosx.wa    \
             index.zh     download-windows.zh     download-macosx.zh    \
                          download-windows        download-macosx            
65 66 67 68 69 70 71 72 73 74

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