fixes bug #425
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 29 Jan 2010 12:26:45 +0000 (13:26 +0100)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 30 Mar 2010 22:29:27 +0000 (00:29 +0200)
enigma2.pot and the .po files are not built by default any more. instead you have to initiate a make rebuild manually.
the plan is to update the po/ directory automatically with a cumulated set of messages gathered from different e2 branches and e2 plugins.

po/Makefile.am

index 9ca79016fe4c18925daa60bb00686dde0dae9c3b..ba04440958e69b75ed3a258685c21aa3bba09c4c 100755 (executable)
@@ -9,11 +9,13 @@ LANGS := $(shell cat $(srcdir)/LINGUAS)
 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
 
-default: enigma2.pot $(LANGPO) merge $(LANGMO)
+default: enigma2.pot $(LANGMO)
        for lang in $(LANGS); do \
                mkdir -p $$lang/LC_MESSAGES; \
                cp $$lang.mo $$lang/LC_MESSAGES/enigma2.mo; \
        done
+       
+rebuild: clean cleanall enigma2.pot $(LANGPO) merge default
 
 merge:
        for lang in $(LANGS); do \
@@ -37,9 +39,6 @@ enigma2.pot:
        $(RM) enigma2.pot
        mv enigma2uniq.pot enigma2.pot
 
-.PHONY: enigma2.pot
-
-
 %.mo: %.po
        $(MSGFMT) -o $@ $<
 
@@ -48,6 +47,9 @@ enigma2.pot:
 
 CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
 
+cleanall:
+       $(RM) enigma2.pot
+
 clean-local:
        $(RM) -r $(LANGS)