Merge commit 'origin/bug_563_fix_backuprestore_crash'
[enigma2.git] / po / Makefile.am
index 2319b7fb356913b6244a7fce3af209e0bd30f329..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 \
@@ -33,14 +35,10 @@ enigma2.pot:
        ./xml2po.py     ../lib/python/Plugins/SystemPlugins/SoftwareManager/ >> enigma2.pot
        ./xml2po.py     ../lib/python/Plugins/SystemPlugins/CleanupWizard/ >> enigma2.pot
        ./xml2po.py     ../lib/python/Plugins/SystemPlugins/NetworkWizard/ >> enigma2.pot
-       cat enigma2_rel25.pot | tail -n +19 >> enigma2.pot
        msguniq --no-location -o enigma2uniq.pot enigma2.pot
        $(RM) enigma2.pot
        mv enigma2uniq.pot enigma2.pot
 
-.PHONY: enigma2.pot
-
-
 %.mo: %.po
        $(MSGFMT) -o $@ $<
 
@@ -49,6 +47,9 @@ enigma2.pot:
 
 CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
 
+cleanall:
+       $(RM) enigma2.pot
+
 clean-local:
        $(RM) -r $(LANGS)