aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-21 16:32:23 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-21 16:32:23 -0400
commit479f75abf41451a239cb0b9fa945469127e6df2d (patch)
treedcc89a5b13c02a556823416f5f0208d2ca9759e5 /po
parent9cc6d6e4b8a22a37bb2d364042d527ddd906142d (diff)
downloadikiwiki-479f75abf41451a239cb0b9fa945469127e6df2d.tar
ikiwiki-479f75abf41451a239cb0b9fa945469127e6df2d.tar.gz
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.
Diffstat (limited to 'po')
-rw-r--r--po/Makefile6
1 files changed, 4 insertions, 2 deletions
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