]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/po/GNUmakefile
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / po / GNUmakefile
index eea2f247d13a7a200170cfb980662fe42fc1e732..b61cb723eeecb1689ccfcf817d9317e98650be31 100644 (file)
@@ -8,7 +8,8 @@ include $(depth)/make/stepmake.make
 doc-localedir=$(outdir)
 LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
 DOMAIN=lilypond-doc
-DOC_PO_SOURCES = postprocess_html.py texi-gettext.py translations-status.py
+DOC_PO_SOURCES = python/auxiliar/postprocess_html.py \
+ scripts/build/texi-gettext.py scripts/auxiliar/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))
 LSR_LYS := $(shell ls $(depth)/input/lsr/*.ly)
@@ -24,12 +25,16 @@ $(outdir)/messages: $(MO_FILES)
        touch $@
 
 po-update:
-       $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely)
-       $(foreach i, $(DOC_PO_SOURCES), cp $(buildscript-dir)/$(i) $(outdir) &&) true
-       cd $(outdir) && sed -i -e s/_doc/_/g $(DOC_PO_SOURCES)
-       cd $(outdir) && xgettext -cjn -L Python -o buildscripts.pot $(DOC_PO_SOURCES)
+       $(auxscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely)
+       $(foreach i, $(DOC_PO_SOURCES), cp $(top-src-dir)/$(i) $(outdir) &&) true
+       cd $(outdir) && sed -i -e s/_doc/_/g $(foreach i, $(DOC_PO_SOURCES), $(notdir $(i)))
+       cd $(outdir) && xgettext -cjn -L Python -o buildscripts.pot $(foreach i, $(DOC_PO_SOURCES), $(notdir $(i)))
        msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.pot
        msgmerge -U lilypond-doc.pot $(outdir)/doc.pot
        for i in $(CATALOGS); do \
          msgmerge -U $$i.po lilypond-doc.pot; \
        done
+
+ifeq ($(out),www)
+local-WWW-1: messages
+endif