1 # assumes depth and ISOLANG are defined
3 OUT_ITEXI_FILES = $(ITELY_FILES:%.itely=$(outdir)/%.itexi)
6 STEPMAKE_TEMPLATES = texinfo
7 LOCALSTEPMAKE_TEMPLATES = lilypond ly
9 include $(depth)/make/stepmake.make
11 LILYPOND_BOOK_INCLUDES += \
12 -I$(depth)/Documentation/$(ISOLANG) \
13 -I$(depth)/Documentation/user \
14 -I$(builddir)/Documentation/user/$(outdir)
18 $(outdir)/lilypond.nexi: $(ITELY_FILES) $(ITEXI_FILES)
20 MAKEINFO = LANG=$(ISOLANG) $(MAKEINFO_PROGRAM) --force
22 $(outdir)/lilypond/index.html: $(outdir)/lilypond.nexi doc-po
24 -$(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --css-include=$(depth)/Documentation/texinfo.css --html $<
25 find $(outdir) -name '*.html' | xargs grep -L 'UNTRANSLATED NODE: IGNORE ME' | xargs $(PYTHON) $(depth)/buildscripts/html-gettext.py $(depth)/Documentation/po/$(outdir) $(ISOLANG)
27 $(outdir)/lilypond.html: $(outdir)/lilypond.nexi
28 -$(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(depth)/Documentation/texinfo.css --html --no-split --no-headers $<
30 local-WWW: png-ln $(outdir)/lilypond.html $(outdir)/lilypond/index.html deep-ln lang-merge
33 $(foreach i, $(shell find $(outdir) -name '*.html' | xargs grep -L 'UNTRANSLATED NODE: IGNORE ME'), ln -f $(i) $(i:$(outdir)/%.html=$(depth)/Documentation/user/$(outdir)/%.$(ISOLANG).html) &&) true
36 mkdir -p $(outdir)/lilypond
37 # makeinfo is broken, it MUST have PNGs in output dir
39 @$(foreach i, $(shell find $(depth)/Documentation/user/$(outdir) -maxdepth 1 -name '*.png'), ln -sf ../$(i) $(i:$(depth)/Documentation/user/$(outdir)/%.png=$(outdir)/%.png) &&) true
40 @$(foreach i, $(shell find $(depth)/Documentation/user/$(outdir)/lilypond -name '*.png'), ln -sf ../../$(i) $(i:$(depth)/Documentation/user/$(outdir)/%.png=$(outdir)/%.png) &&) true
42 # Links referred to by Documentation index
43 # BROKEN: the following makes broken symlinks
44 #LILYPOND_LINKS = Reference-Manual.html Tutorial.html Ly2dvi.html Midi2ly.html
48 mkdir -p $(outdir)/lilypond
49 cd $(outdir)/lilypond && $(foreach i, $(LILYPOND_LINKS),\
50 rm -f $(i) && ln -s lilypond.html $(i) &&) true
52 local-WWW-clean: deep-WWW-clean
55 rm -rf $(outdir)/lilypond
58 $(MAKE) out=www local-WWW-clean
61 $(MAKE) -C $(depth)/Documentation/po messages