i18n/Makefile
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 03 Oct 2017 16:08:00 +0300
changeset 1843 4bec5768afbb
parent 1842 05c1f7aa8991
child 1845 3abde7651c38
permissions -rw-r--r--
update list with files for internatialization, app.fil
all:
	@echo "Please specify target 'source_list', 'template' or 'locales'"

template:
	@echo To generate translation template message.pot file:
	python mki18n.py -p --domain=Beremiz

locales:
	@echo "Generate .mo files for all languages:"
	python mki18n.py -m --moTarget=../locale --domain=Beremiz


source_list:
	echo @To "Generate list with source files: app.fil:"
	find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil
	echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil
	echo "../plcopen/Standard_Function_Blocks.xml"   >> app.fil

.PHONY: all, app.fil, locales, messages.pot