From: John Mandereau Date: Sun, 17 Feb 2008 17:00:52 +0000 (+0100) Subject: Avoid systematic doc POs rebuilding X-Git-Tag: release/2.11.40-1~3^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=902be1fd4a18cd403576c754dbf3f628bf77c9b6;p=lilypond.git Avoid systematic doc POs rebuilding This should avoid translated docs always being outdated when making web on non-fresh builds. --- diff --git a/Documentation/po/GNUmakefile b/Documentation/po/GNUmakefile index 19b27e23be..4542740e1d 100644 --- a/Documentation/po/GNUmakefile +++ b/Documentation/po/GNUmakefile @@ -11,11 +11,14 @@ DOC_PO_SOURCES = add_html_footer.py texi-gettext.py TELY_FILES = $(shell ls $(depth)/Documentation/user/lilypond*.tely) TELY_FILES += $(foreach l, $(LANGS), $(shell ls $(depth)/Documentation/$(l)/user/lilypond*.tely)) -messages: $(MO_FILES) +messages: $(outdir)/messages + +$(outdir)/messages: $(MO_FILES) for i in $(CATALOGS); do \ mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \ cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \ done + touch $@ po-update: $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely)