X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fpo%2FGNUmakefile;h=9849b93546593a2eff8351f432708b95d8f595ae;hb=bcb8ef968d35a4ed7e054a2e3d78282102065ca6;hp=9eb52152895d1679366ff539ac727366f7b1d278;hpb=c6249e4a2fe98219ffd8a9f3f0083cfaf8677a46;p=lilypond.git diff --git a/Documentation/po/GNUmakefile b/Documentation/po/GNUmakefile index 9eb5215289..9849b93546 100644 --- a/Documentation/po/GNUmakefile +++ b/Documentation/po/GNUmakefile @@ -6,11 +6,14 @@ LOCALSTEPMAKE_TEMPLATES=lilypond include $(depth)/make/stepmake.make doc-localedir=$(outdir) -LANGS = $(shell $(PYTHON) $(buildscript-dir)/langdefs.py) +LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py) DOMAIN=lilypond-doc -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)) +DOC_PO_SOURCES = python/auxiliar/postprocess_html.py \ + scripts/auxiliar/tely-gettext.py scripts/auxiliar/translations-status.py +TELY_FILES = $(shell ls $(depth)/Documentation/*.tely) +TELY_FILES += $(foreach l, $(LANGS), $(shell ls $(depth)/Documentation/$(l)/*.tely)) +LSR_LYS := $(shell ls $(depth)/Documentation/snippets/*.ly) +TELY_FILES += $(LSR_LYS:%.ly=../%.ly) messages: $(outdir)/messages @@ -22,12 +25,15 @@ $(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) + $(PYTHON) $(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) && xgettext --keyword=_doc -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