From 479f75abf41451a239cb0b9fa945469127e6df2d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 21 Mar 2008 16:32:23 -0400 Subject: defer po and pot file updating until package build time This allows make to be run without polluting the tree with lots of po file changes. --- po/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile index 52e702e47..013cdf268 100644 --- a/po/Makefile +++ b/po/Makefile @@ -5,7 +5,9 @@ POTFILES=$(sort $(shell find ../IkiWiki -type f -name \*.pm)) \ POFILES=$(wildcard *.po) MOFILES=$(POFILES:.po=.mo) -all: ikiwiki.pot $(MOFILES) +all: ikiwiki.pot mo + +mo: $(MOFILES) install: all for file in $(MOFILES); do \ @@ -26,7 +28,7 @@ clean: %.mo: %.po msgfmt -o $@ $< -%.po: ikiwiki.pot +%.po: @echo -n "Merging ikiwiki.pot and $@" @msgmerge $@ ikiwiki.pot -o $@.new 2>&1 # Typically all that changes was a date or line number. I'd prefer not to -- cgit v1.2.3