Makefile.inc 2.4 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 5 6
PHP_FILES := download-* index features libvlc screenshots skineditor skineditor_update \
             skins skins_upload streaming \
             index.fr index.de index.ru index.tr index.hi index.cs index.he \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
7
             index.ja index.pl index.wa index.gd index.zh index.nb \
8
             index.gl index.km index.mr index.bs index.nl index.ast \
9
             index.pt index.pt_BR index.bn_IN index.gu_IN index.th \
10
             index.sk index.et \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
11
             download-windows \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
12 13 14
             download-windows.fr download-windows.de download-windows.ru \
             download-windows.tr download-windows.hi download-windows.cs \
             download-windows.he download-windows.ja download-windows.pl \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
15
             download-windows.wa download-windows.gd download-windows.zh \
16
             download-windows.nb download-windows.gl download-windows.km \
17
             download-windows.mr download-windows.bs download-windows.nl \
18
             download-windows.ast download-windows.pt download-windows.pt_BR \
19
             download-windows.bn_IN download-windows.gu_IN download-windows.th \
20
             download-windows.sk download-windows.et \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
21
             download-macosx download-macosx.fr download-macosx.de download-macosx.ru \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
22
             download-macosx.tr download-macosx.hi download-macosx.cs \
23
             download-macosx.he download-macosx.ja download-macosx.pl \
24 25
             download-macosx.wa download-macosx.gd download-macosx.zh \
             download-macosx.nb download-macosx.gl download-macosx.km \
26
             download-macosx.mr download-macosx.bs download-macosx.nl \
27
             download-macosx.ast download-macosx.pt download-macosx.pt_BR \
28
             download-macosx.bn_IN download-macosx.gu_IN download-macosx.th \
29
             download-macosx.sk download-macosx.et
30 31 32 33 34 35 36 37 38 39

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