3 LATEX_FILES =$(wildcard *.latex)
6 DVI_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.dvi))
8 EXTRA_DIST_FILES= $(LATEX_FILES) $(IMAGES)
9 IMAGES=$(wildcard *.png)
11 OUT_EPS_IMAGES=$(addprefix $(outdir)/,$(IMAGES:.png=.eps))
12 OUT_PNG_IMAGES=$(addprefix $(outdir)/,$(IMAGES))
14 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
16 PS_FILES = $(DVI_FILES:.dvi=.ps)
17 PDF_FILES = $(DVI_FILES:.dvi=.pdf)
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
21 INFO_DOCS = lilypond lilypond-internals music-glossary
22 INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info)
24 STEPMAKE_TEMPLATES=tex texinfo omf documentation
26 OMF_FILES += $(outdir)/lilypond-internals.html.omf
28 LOCALSTEPMAKE_TEMPLATES=lilypond ly
29 LILYPOND_BOOK_FLAGS = --process="lilypond-bin -I $(srcdir)/input/test -e '(ly:set-option (quote internal-type-checking) \#t)'"
31 include $(depth)/make/stepmake.make
39 # There are two modes for info: with and without images.
42 # This builds all .info targets with images, in out-www.
43 # Viewawble with a recent Emacs, doing: M-x info out-www/lilypond.info
46 # Cancel the special, non-image info generation rule that skips images:
47 $(outdir)/%.info: $(outdir)/%.nexi
48 local-install-info: install-info info
49 -$(INSTALL) -d $(DESTDIR)$(package_infodir)
50 (cd $(package_infodir) && ln -sf $(local_package_docdir)/Documentation/user/out-www/*png .)
52 rm -f $(package_infodir)/*.png
54 # Cancel the default info generation rule that generates images:
55 $(outdir)/%.info: # $(outdir)/%.texi
58 # All web targets, except info image symlinks and info docs are
59 # installed in non-recursing target from TOPDIR
60 local-install-WWW: local-install-info
61 local-uninstall-WWW: local-uninstall-info
66 local-help: extra-local-help
70 dvi update dvi documents\n\
71 info update info pages\n\
72 ps update PostScript documents\n\
75 # Generic rule using % twice not possible?
76 # $(outdir)/%/%.html: $(outdir)/%.texi
77 $(outdir)/lilypond.texi: $(outdir)/lilypond-internals.texi
78 $(outdir)/lilypond.nexi: $(outdir)/lilypond-internals.texi
81 $(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
83 $(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --html $<
84 $(MAKEINFO) -I$(outdir) --output=$@ --html --no-split --no-headers $<
85 perl -i~ -pe 's!../lilypond-internals!lilypond-internals/!g' $(outdir)/lilypond.html
86 rm -f $(outdir)/lilypond/*.png $(outdir)/lilypond/*.ly
87 -ln -f $(outdir)/*.png $(outdir)/*.ly $(outdir)/lilypond/
89 $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-internals.texi
91 $(MAKEINFO) --output=$(outdir)/lilypond-internals --html $<
92 $(MAKEINFO) -I$(outdir) --output=$@ --html --no-split --no-headers $<
94 ifeq ($(SPLITTING_MAKEINFO),yes)
96 $(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES)
98 $(outdir)/%.png: %.png
99 convert -geometry 50x50% $< $@
101 $(outdir)/%.eps: %.png
104 DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
108 # Links referred to by Documentation index
109 LILYPOND_LINKS=Reference-Manual.html Tutorial.html Ly2dvi.html Midi2ly.html
111 local-WWW: outimages deep-symlinks
114 mkdir -p $(outdir)/lilypond
115 cd $(outdir)/lilypond && $(foreach i, $(LILYPOND_LINKS),\
116 rm -f $(i) && ln -s lilypond.html $(i) &&) true
121 local-WWW: $(HTML_FILES) $(datafiles) $(PDF_FILES) $(PS_GZ_FILES) $(DEEP_HTML_FILES) info info-dir
123 local-WWW-clean: deep-WWW-clean
126 rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals
129 $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
132 $(outdir)/%.bib: %.bib
136 rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
137 rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals
140 $(builddir)/mf/$(outconfbase)/feta16list.ly:
141 $(MAKE) -C $(topdir)/mf
143 $(outdir)/lilypond.texi: $(ITELY_FILES) macros.itexi
145 # Rules for the automatically generated documentation
146 # When cross-compiling, we don't have lilypond, so we fake
150 # There used to be a dependency on a dummy target, to force a rebuild
151 # of lilypond-internals every time. however, this triggers
152 # compilation during install, which is a bad thing (tm).
154 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi: $(builddir)/lily/$(outconfbase)/lilypond-bin
155 cd $(outdir) && $(builddir)/lily/$(outconfbase)/lilypond-bin --verbose $(abs-srcdir)/ly/generate-documentation
156 rm -f $(outdir)/lilypond-internals.nexi
157 -ln $(outdir)/lilypond-internals.texi $(outdir)/lilypond-internals.nexi
161 $(outdir)/interfaces.itexi: dummy
162 cd $(outdir) && $(builddir)/lily/$(outconfbase)/lilypond-bin $(abs-srcdir)/ly/generate-interface-doc
166 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
168 touch $(outdir)/$(*F).nexi
170 $(outdir)/interfaces.itexi:
171 cp dummy-interfaces.itexi $@
175 local-clean: local-delete
178 -rm -f $(outdir)/lily-1*