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

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
4 5 6 7 8 9 10 11 12 13
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 \
             index.ja index.pl \
             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 \
             download-macosx.fr download-macosx.de download-macosx.ru \
             download-macosx.tr download-macosx.hi download-macosx.cs \
             download-macosx.he download-macosx.ja download-macosx.pl
14 15 16 17 18 19 20 21 22 23

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