andrej@1842: all: andrej@1842: @echo "Please specify target 'source_list', 'template' or 'locales'" andrej@1842: andrej@1842: template: andrej@1842: @echo To generate translation template message.pot file: andrej@1842: python mki18n.py -p --domain=Beremiz andrej@1842: andrej@1842: locales: andrej@1842: @echo "Generate .mo files for all languages:" andrej@1842: python mki18n.py -m --moTarget=../locale --domain=Beremiz andrej@1842: andrej@1842: andrej@1842: source_list: andrej@1842: echo @To "Generate list with source files: app.fil:" andrej@1842: find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil andrej@1842: echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil andrej@1842: echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil andrej@1842: andrej@1845: .PHONY: all, template, locales, source_list