]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/po/GNUmakefile
Add translation GNUmakefiles.
[lilypond.git] / Documentation / po / GNUmakefile
1 depth = ../..
2
3 POT_FILES = $(call src-wildcard,*.pot)
4 PO_FILES = $(call src-wildcard,*.po)
5 MO_FILES = $(addprefix $(outdir)/, $(PO_FILES:.po=.mo))
6 HELP_CATALOGS = $(PO_FILES:%.po=%)
7 CATALOGS = $(HELP_CATALOGS:$(DOMAIN)=)
8 STEPMAKE_TEMPLATES=podir
9
10 include $(depth)/make/stepmake.make
11
12 doc-localedir=$(outdir)
13 DOMAIN=lilypond-doc
14
15 messages: $(MO_FILES)
16         for i in $(CATALOGS); do \
17           mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \
18           cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \
19         done
20
21 po-update:
22         $(PYTHON) $(depth)/buildscripts/texi-langutils.py -d $(outdir) -o doc.pot --gettext ../$(depth)/Documentation/user/lilypond.tely
23         msgmerge -U lilypond-doc.pot $(outdir)/doc.pot
24         for i in $(CATALOGS); do \
25           msgmerge -U $$i.po lilypond-doc.pot; \
26         done