]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/GNUmakefile
patch::: 1.3.103.jcn3
[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 STEPMAKE_TEMPLATES=tex texinfo documentation
22 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
23
24 include $(depth)/make/stepmake.make 
25
26 dvi: $(DVI_FILES)
27
28 ps: $(PS_FILES)
29
30 # urg
31 default: 
32
33 local-WWW: $(HTML_FILES)   $(datafiles) $(PS_GZ_FILES) backdoc
34         true
35
36 #       $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
37 #          $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
38 #         | sed "s!$(outdir)/!!g" > $(outdir)/index.html
39
40 $(outdir)/%.bib: %.bib
41         ln -f $< $@
42 # we want footers even if website builds (or is built) partly
43         $(MAKE) footify
44
45 localclean:
46         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk 
47
48 #ugh. out/ hardcoded.
49 backdoc: $(outdir)/lilypond-internals.html
50
51 $(outdir)/lilypond-internals.texi:
52         (cd $(outdir); $(topdir)/lily/out/lilypond ../$(srcdir)/../ly/generate-documentation)