]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/GNUmakefile
release: 1.3.106
[lilypond.git] / Documentation / user / GNUmakefile
1 # Documentation/tex/Makefile
2
3 depth=../..
4
5
6
7 LATEX_FILES =$(wildcard *.latex)
8
9
10 # todo: add latex.
11 DVI_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.dvi))
12
13 EXTRA_DIST_FILES= $(LATEX_FILES)    $(wildcard *.itexi *.itely)
14
15 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
16
17 PS_FILES = $(DVI_FILES:.dvi=.ps)  $(OUTDOC_FILES:.doc=.ps) $(OUTTEX_FILES:.tex=.ps)
18
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
20
21 INFO_FILES = $(addprefix $(outdir)/, lilypond.info lilypond-internals.info)
22
23 STEPMAKE_TEMPLATES=tex texinfo documentation
24 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
25
26 include $(depth)/make/stepmake.make 
27
28 dvi: $(DVI_FILES)
29
30 ps: $(PS_FILES)
31
32 info: $(INFO_FILES)
33
34 default: 
35
36 DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
37
38 local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES)
39         $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
40         $(MAKE) footify
41         -mkdir $(outdir)/lilypond 
42         ln -f $(outdir)/*.png $(outdir)/lilypond
43         $(MAKE) deep-footify
44
45 #       $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
46 #          $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
47 #         | sed "s!$(outdir)/!!g" > $(outdir)/index.html
48
49 $(outdir)/%.bib: %.bib
50         ln -f $< $@
51 # we want footers even if website builds (or is built) partly
52         $(MAKE) footify
53
54 localclean:
55         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk 
56
57 backdoc-WWW: $(outdir)/lilypond-internals/lilypond-internals.html
58         $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
59
60 #ugh. lily/OUT/lilypond hardcoded.
61 # when cross-compiling, we don't have lilypond
62 $(outdir)/lilypond-internals.texi:
63         if [ -e $(depth)/$(builddir)/lily/out/lilypond ]; then \
64                 cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation; \
65         else \
66                 touch $@; \
67         fi
68
69 # Generic rule not possible?
70 # $(outdir)/%/%.html: $(outdir)/%.texi
71
72 $(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
73         -$(MAKEINFO) --force --output=$@ --html $<
74 # we want footers even if website builds (or is built) partly
75         $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
76
77
78 $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-internals.texi
79         -$(MAKEINFO) --force --output=$@ --html $<
80 # we want footers even if website builds (or is built) partly
81         $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
82
83