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