From: Michael Tremer Date: Sat, 20 Oct 2012 16:51:14 +0000 (+0000) Subject: Don't regenerate pot file, every time we run make. X-Git-Tag: 0.9.24~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=273abbbc835fbe57916cdac8c36015ad22cff4f7;p=pakfire.git Don't regenerate pot file, every time we run make. --- diff --git a/Makefile b/Makefile index 0361af6ae..581332cee 100644 --- a/Makefile +++ b/Makefile @@ -45,3 +45,7 @@ check: .PHONY: po po: $(MAKE) -C po + +.PHONY: pot +pot: + $(MAKE) -C po pot diff --git a/po/Makefile b/po/Makefile index af22eb923..b1072d722 100644 --- a/po/Makefile +++ b/po/Makefile @@ -10,13 +10,16 @@ TRANS_FILES := $(addprefix $(TOP),$(TRANS_FILES)) TRANS_FILES := $(sort $(wildcard $(TRANS_FILES))) .PHONY: all -all: $(POT_FILE) $(MO_FILES) +all: $(MO_FILES) + +.PHONY: pot +pot: $(POT_FILE) $(POT_FILE): $(TRANS_FILES) xgettext -d $(PACKAGE_NAME) -k_ -kN_ \ -o $@ --add-comments --from-code=UTF-8 $^ -%.mo: %.po $(POT_FILE) +%.mo: %.po msgfmt -o $@ $< .PHONY: install @@ -29,4 +32,4 @@ install: $(MO_FILES) .PHONY: clean clean: - rm -f $(POT_FILE) $(MO_FILES) + rm -f $(MO_FILES)