# HG changeset patch # User Dongsheng Song # Date 1256113302 -28800 # Node ID 3df0c9cfe9022e45d2fce6782094887cec0fed35 # Parent a821682ea3a59b0f673cfe8bfc29cd3345c72bc2 Only run updatepo when required diff -r a821682ea3a5 -r 3df0c9cfe902 Makefile --- a/Makefile Wed Oct 21 16:10:27 2009 +0800 +++ b/Makefile Wed Oct 21 16:21:42 2009 +0800 @@ -95,13 +95,15 @@ $(MAKE) $@ LINGUA=$$l; \ done else -updatepo: -ifneq "$(findstring $(LINGUA),$(PO_LANGUAGES))" "" +po/$(LINGUA).po: $(wildcard en/*.xml) + ifneq "$(findstring $(LINGUA),$(PO_LANGUAGES))" "" (cd po; \ $(UPDATEPO) -m ../en/00book.xml -p $(LINGUA).po; \ ) $(MAKE) tidypo LINGUA=$(LINGUA) -endif + endif + +updatepo: po/$(LINGUA).po endif ifndef LINGUA