]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/po/GNUmakefile
Merge master into nested-bookparts
[lilypond.git] / Documentation / po / GNUmakefile
index 13231ff3b646fa6ab7261896ce2c877f67eaf149..685d2bab5f17958fd0082811868e7621f39475a1 100644 (file)
@@ -1,19 +1,25 @@
 depth = ../..
 
 STEPMAKE_TEMPLATES=podir
+LOCALSTEPMAKE_TEMPLATES=lilypond
 
 include $(depth)/make/stepmake.make
 
 doc-localedir=$(outdir)
+LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
 DOMAIN=lilypond-doc
-DOC_PO_SOURCES = add_html_footer.py texi-gettext.py
+DOC_PO_SOURCES = postprocess_html.py texi-gettext.py translations-status.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)