hgbook
changeset 881:3df0c9cfe902
Only run updatepo when required
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Wed Oct 21 16:21:42 2009 +0800 (2009-10-21) |
parents | a821682ea3a5 |
children | 50d09b8f3c4f |
files | Makefile |
line diff
1.1 --- a/Makefile Wed Oct 21 16:10:27 2009 +0800 1.2 +++ b/Makefile Wed Oct 21 16:21:42 2009 +0800 1.3 @@ -95,13 +95,15 @@ 1.4 $(MAKE) $@ LINGUA=$$l; \ 1.5 done 1.6 else 1.7 -updatepo: 1.8 -ifneq "$(findstring $(LINGUA),$(PO_LANGUAGES))" "" 1.9 +po/$(LINGUA).po: $(wildcard en/*.xml) 1.10 + ifneq "$(findstring $(LINGUA),$(PO_LANGUAGES))" "" 1.11 (cd po; \ 1.12 $(UPDATEPO) -m ../en/00book.xml -p $(LINGUA).po; \ 1.13 ) 1.14 $(MAKE) tidypo LINGUA=$(LINGUA) 1.15 -endif 1.16 + endif 1.17 + 1.18 +updatepo: po/$(LINGUA).po 1.19 endif 1.20 1.21 ifndef LINGUA