From 273abbbc835fbe57916cdac8c36015ad22cff4f7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 20 Oct 2012 16:51:14 +0000 Subject: [PATCH] Don't regenerate pot file, every time we run make. --- Makefile | 4 ++++ po/Makefile | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) 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) -- 2.39.5