Makefile.inc 1 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

4
PHP_FILES := $(wildcard vlc/*.php) \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
5
        index.fr index.de index.ru index.tr index.hi index.cs \
6
        download-windows.fr download-windows.de download-windows.ru \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
7 8 9
        download-windows.tr download-windows.hi download-windows.cs \
        download-macosx.fr download-macosx.de download-macosx.ru \
        download-macosx.tr download-macosx.hi download-macosx.cs
10 11 12 13 14 15 16 17 18 19

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