]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/po/GNUmakefile
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / po / GNUmakefile
1 depth = ../..
2
3 STEPMAKE_TEMPLATES=podir
4
5 include $(depth)/make/stepmake.make
6
7 doc-localedir=$(outdir)
8 DOMAIN=lilypond-doc
9 DOC_PO_SOURCES = add_html_footer.py langdefs.py
10
11 messages: $(MO_FILES)
12         for i in $(CATALOGS); do \
13           mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \
14           cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \
15         done
16
17 po-update:
18         $(PYTHON) $(buildscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --gettext ../$(depth)/Documentation/user/lilypond.tely
19         xgettext -cjn -L Python -o $(outdir)/buildscripts.pot $(foreach i, $(DOC_PO_SOURCES), $(buildscript-dir)/$(i) )
20         msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.pot
21         msgmerge -U lilypond-doc.pot $(outdir)/doc.pot
22         for i in $(CATALOGS); do \
23           msgmerge -U $$i.po lilypond-doc.pot; \
24         done