LEFT | RIGHT |
1 depth = ../.. | 1 depth = ../.. |
2 | 2 |
3 STEPMAKE_TEMPLATES=podir | 3 STEPMAKE_TEMPLATES=podir |
4 LOCALSTEPMAKE_TEMPLATES=lilypond | 4 LOCALSTEPMAKE_TEMPLATES=lilypond |
5 | 5 |
6 include $(depth)/make/stepmake.make | 6 include $(depth)/make/stepmake.make |
7 | 7 |
8 doc-localedir=$(outdir) | 8 doc-localedir=$(outdir) |
9 LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py) | 9 LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py) |
10 DOMAIN=lilypond-doc | 10 DOMAIN=lilypond-doc |
11 DOC_PO_SOURCES = python/auxiliar/postprocess_html.py \ | 11 DOC_PO_SOURCES = python/auxiliar/postprocess_html.py \ |
12 scripts/auxiliar/tely-gettext.py scripts/auxiliar/translations-status.py | 12 scripts/auxiliar/tely-gettext.py scripts/auxiliar/translations-status.py |
13 TELY_FILES = $(shell ls $(depth)/Documentation/*.tely) | 13 TELY_FILES = $(shell ls $(depth)/Documentation/*.tely) |
14 TELY_FILES += $(foreach l, $(LANGS), $(shell ls $(depth)/Documentation/$(l)/*.te
ly)) | 14 TELY_FILES += $(foreach l, $(LANGS), $(shell ls $(depth)/Documentation/$(l)/*.te
ly)) |
15 LSR_LYS = $(shell ls $(depth)/Documentation/snippets/*.ly) | 15 LSR_LYS = $(shell ls $(depth)/Documentation/snippets/*.ly) |
16 TELY_FILES += $(LSR_LYS:%.ly=../%.ly) | 16 TELY_FILES += $(LSR_LYS:%.ly=../%.ly) |
17 | 17 |
18 messages: $(outdir)/messages | 18 messages: $(outdir)/messages |
19 | 19 |
20 $(outdir)/messages: $(MO_FILES) | 20 $(outdir)/messages: $(MO_FILES) |
21 » $(call ly_info,Making $(abspath $@) (hard links)) | 21 » $(call ly_progress,Making,$@,(hard links)) |
22 for i in $(CATALOGS); do \ | 22 for i in $(CATALOGS); do \ |
23 rm -rf $(doc-localedir)/$$i/LC_MESSAGES; \ | 23 rm -rf $(doc-localedir)/$$i/LC_MESSAGES; \ |
24 mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \ | 24 mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \ |
25 $(LN) $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo;
\ | 25 $(LN) $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo;
\ |
26 done | 26 done |
27 touch $@ | 27 touch $@ |
28 | 28 |
29 po-update: | 29 po-update: |
30 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --
gettext $(TELY_FILES:%.tely=../%.tely) | 30 $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -o texi.pot --
gettext $(TELY_FILES:%.tely=../%.tely) |
31 $(foreach i, $(DOC_PO_SOURCES), cp $(top-src-dir)/$(i) $(outdir) &&) tru
e | 31 $(foreach i, $(DOC_PO_SOURCES), cp $(top-src-dir)/$(i) $(outdir) &&) tru
e |
32 cd $(outdir) && xgettext --keyword=_doc -cjn -L Python -o buildscripts.p
ot $(foreach i, $(DOC_PO_SOURCES), $(notdir $(i))) | 32 cd $(outdir) && xgettext --keyword=_doc -cjn -L Python -o buildscripts.p
ot $(foreach i, $(DOC_PO_SOURCES), $(notdir $(i))) |
33 msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.po
t | 33 msgcat -o $(outdir)/doc.pot $(outdir)/buildscripts.pot $(outdir)/texi.po
t |
34 msgmerge -U lilypond-doc.pot $(outdir)/doc.pot | 34 msgmerge -U lilypond-doc.pot $(outdir)/doc.pot |
35 for i in $(CATALOGS); do \ | 35 for i in $(CATALOGS); do \ |
36 msgmerge -U $$i.po lilypond-doc.pot; \ | 36 msgmerge -U $$i.po lilypond-doc.pot; \ |
37 done | 37 done |
38 | 38 |
39 ifeq ($(out),www) | 39 ifeq ($(out),www) |
40 local-WWW-1: messages | 40 local-WWW-1: messages |
41 endif | 41 endif |
LEFT | RIGHT |