From: Stas Shtin Date: Mon, 12 Apr 2010 20:39:01 +0000 (+0400) Subject: Makefile is more fine-grained now X-Git-Url: https://vcs.maemo.org/git/?p=ipypbx;a=commitdiff_plain;h=4ce3c7005919ec1cd1641d8ffceee87e7b3496f9 Makefile is more fine-grained now --- diff --git a/Makefile b/Makefile index 222c02a..746eb7e 100644 --- a/Makefile +++ b/Makefile @@ -8,16 +8,25 @@ all: ui translation ui: pyuic4 $(PROJECT) -translation: +translation: po2ts transupdate ts2po transrelease + +po2ts: # Convert translation strings from PO format to TS. $(foreach lang, $(TRANSLATION_LANGUAGES), \ lconvert -i $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).po \ -o $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).ts;\ ) + +transupdate: # Update translation from GUI. pylupdate4 $(PROJECT) + +ts2po: # Convert translation strings to TS format from PO. $(foreach lang, $(TRANSLATION_LANGUAGES), \ lconvert -i $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).ts \ -o $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).po;\ - ) \ No newline at end of file + ) + +transrelease: + lrelease $(PROJECT)