Added makefile for basic tasks
authorStas Shtin <antisvin@gmail.com>
Sun, 11 Apr 2010 16:13:38 +0000 (20:13 +0400)
committerStas Shtin <antisvin@gmail.com>
Sun, 11 Apr 2010 16:13:38 +0000 (20:13 +0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3faded0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+BASENAME=ipypbx
+TRANSLATION_LANGUAGES=ru fi
+TRANSLATIONS_PATH=src/ipypbx/locale
+PROJECT=$(BASENAME).pro
+
+all: ui translation
+
+ui:
+       pyuic4 $(PROJECT)
+
+translation:
+       pylupdate4 $(PROJECT)
+       $(foreach lang, $(TRANSLATION_LANGUAGES), \
+               lconvert -i $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).ts \
+                        -o $(TRANSLATIONS_PATH)/$(BASENAME)_$(lang).po;\
+       )
\ No newline at end of file