]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
07b68a59f8418569204c0bd68e23283752a70161
[lilypond.git] / Documentation / tex / GNUmakefile
1 # Documentation/tex/Makefile
2
3 depth=../..
4
5 DATA_FILES = $(wildcard *.data)
6 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
7 DOC_FILES = $(wildcard *.doc)
8 DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
9 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
10 EL_FILES = $(wildcard *.el)
11 BIB_FILES= $(wildcard *.bib)
12 EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES)
13 HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
14 PS_FILES = $(DVI_FILES:.dvi=.ps)
15
16 STEPMAKE_TEMPLATES=documentation
17 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
18
19
20 include $(depth)/make/stepmake.make 
21
22 dvi: $(DVI_FILES)
23
24 ps: $(PS_FILES)
25
26 # urg
27 default:
28
29 GENHTMLS = engraving colorado vocabulary computer-notation
30 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
31
32
33 $(outdir)/glossary.dvi: $(outdir)/vocabulary.tex 
34 $(outdir)/glossary.html: $(OUTGENHTMLS)
35
36 local-WWW: $(HTML_FILES) $(OUTDOC_FILES:.doc=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
37         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
38           $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) \
39           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
40           $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
41
42 $(outdir)/%.bib: %.bib
43         ln -f $< $@
44
45 $(outdir)/%.html: %.bib
46         bib2html $< $@
47
48 # Yeah right: 
49 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
50
51 #out/%: $(outdir)/%
52 #       cp -f $< $@