Makefile is more fine-grained now
authorStas Shtin <antisvin@gmail.com>
Mon, 12 Apr 2010 20:39:01 +0000 (00:39 +0400)
committerStas Shtin <antisvin@gmail.com>
Mon, 12 Apr 2010 20:39:01 +0000 (00:39 +0400)
Makefile

index 222c02a..746eb7e 100644 (file)
--- 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)