X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4ba60a7e801150afc2e18f1250febe5e49a46d7a..05d902ffb1a0dfb03cbb69324ceb20439b73c977:/po/Makefile.am diff --git a/po/Makefile.am b/po/Makefile.am index 2319b7fb..ba044409 100755 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -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)