3 STEPMAKE_TEMPLATES=podir
5 include $(depth)/make/stepmake.make
7 doc-localedir=$(outdir)
9 DOC_PO_SOURCES = add_html_footer.py texi-gettext.py
10 TELY_FILES = $(shell ls $(depth)/Documentation/user/lilypond*.tely)
13 for i in $(CATALOGS); do \
14 mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \
15 cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \
19 $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext $(TELY_FILES:%.tely=../%.tely)
20 $(foreach i, $(DOC_PO_SOURCES), cp $(buildscript-dir)/$(i) $(outdir) &&) true
21 cd $(outdir) && sed -i -e s/_doc/_/g $(DOC_PO_SOURCES)
22 cd $(outdir) && xgettext -cjn -L Python -o buildscripts.pot $(DOC_PO_SOURCES)
23 msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.pot
24 msgmerge -U lilypond-doc.pot $(outdir)/doc.pot
25 for i in $(CATALOGS); do \
26 msgmerge -U $$i.po lilypond-doc.pot; \