Makefile.inc 3.73 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 9 10 11
             index.ast    download-windows.ast    download-macosx.ast   \
             index.bn_IN  download-windows.bn_IN  download-macosx.bn_IN \
             index.bs     download-windows.bs     download-macosx.bs    \
             index.cs     download-windows.cs     download-macosx.cs    \
12
             index.da     download-windows.da     download-macosx.da    \
Christoph Miebach's avatar
Christoph Miebach committed
13
             index.de     download-windows.de     download-macosx.de    \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
14
             index.es     download-windows.es     download-macosx.es    \
Christoph Miebach's avatar
Christoph Miebach committed
15 16 17 18
             index.et     download-windows.et     download-macosx.et    \
             index.fr     download-windows.fr     download-macosx.fr    \
             index.gd     download-windows.gd     download-macosx.gd    \
             index.gl     download-windows.gl     download-macosx.gl    \
19
             index.gu     download-windows.gu     download-macosx.gu    \
Christoph Miebach's avatar
Christoph Miebach committed
20 21
             index.he     download-windows.he     download-macosx.he    \
             index.hi     download-windows.hi     download-macosx.hi    \
22
             index.is     download-windows.is     download-macosx.is    \
Christoph Miebach's avatar
Christoph Miebach committed
23 24 25 26 27
             index.ja     download-windows.ja     download-macosx.ja    \
             index.km     download-windows.km     download-macosx.km    \
             index.mr     download-windows.mr     download-macosx.mr    \
             index.nb     download-windows.nb     download-macosx.nb    \
             index.nl     download-windows.nl     download-macosx.nl    \
28
             index.or     download-windows.or     download-macosx.or    \
Christoph Miebach's avatar
Christoph Miebach committed
29 30 31 32 33
             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    \
             index.ru     download-windows.ru     download-macosx.ru    \
             index.sk     download-windows.sk     download-macosx.sk    \
34
             index.sr     download-windows.sr     download-macosx.sr    \
Christoph Miebach's avatar
Christoph Miebach committed
35 36
             index.th     download-windows.th     download-macosx.th    \
             index.tr     download-windows.tr     download-macosx.tr    \
37
             index.uk     download-windows.uk     download-macosx.uk    \
38
             index.ur     download-windows.ur     download-macosx.ur    \
Christoph Miebach's avatar
Christoph Miebach committed
39 40 41
             index.wa     download-windows.wa     download-macosx.wa    \
             index.zh     download-windows.zh     download-macosx.zh    \
                          download-windows        download-macosx            
42 43 44 45 46 47 48 49 50 51

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