3 STEPMAKE_TEMPLATES=podir
4 LOCALSTEPMAKE_TEMPLATES=lilypond
6 include $(depth)/make/stepmake.make
8 doc-localedir=$(outdir)
9 LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py)
11 DOC_PO_SOURCES = python/auxiliar/postprocess_html.py \
12 scripts/auxiliar/tely-gettext.py scripts/auxiliar/translations-status.py
13 TELY_FILES = $(shell ls $(depth)/Documentation/*.tely)
14 TELY_FILES += $(foreach l, $(LANGS), $(shell ls $(depth)/Documentation/$(l)/*.tely))
15 LSR_LYS = $(shell ls $(depth)/Documentation/snippets/*.ly)
16 TELY_FILES += $(LSR_LYS:%.ly=../%.ly)
18 messages: $(outdir)/messages
20 $(outdir)/messages: $(MO_FILES)
21 for i in $(CATALOGS); do \
22 mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \
23 cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \
28 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely)
29 $(foreach i, $(DOC_PO_SOURCES), cp $(top-src-dir)/$(i) $(outdir) &&) true
30 cd $(outdir) && xgettext --keyword=_doc -cjn -L Python -o buildscripts.pot $(foreach i, $(DOC_PO_SOURCES), $(notdir $(i)))
31 msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.pot
32 msgmerge -U lilypond-doc.pot $(outdir)/doc.pot
33 for i in $(CATALOGS); do \
34 msgmerge -U $$i.po lilypond-doc.pot; \