Makefile.inc 1.17 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 index.he \
6
        index.ja index.pl \
7
        download-windows.fr download-windows.de download-windows.ru \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
8
        download-windows.tr download-windows.hi download-windows.cs \
9
        download-windows.he download-windows.ja download-windows.pl \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
10
        download-macosx.fr download-macosx.de download-macosx.ru \
Konstantin Pavlov's avatar
Konstantin Pavlov committed
11
        download-macosx.tr download-macosx.hi download-macosx.cs \
12
        download-macosx.he download-macosx.ja download-macosx.pl
13 14 15 16 17 18 19 20 21 22

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