]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/tex/GNUmakefile
release: 1.0.13
[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 # just include me
12 YO_URG_FILES = $(wildcard *.yo-urg)
13
14 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
15 EL_FILES = $(wildcard *.el)
16 BIB_FILES= $(wildcard *.bib)
17 EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES)
18 HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
19 PS_FILES = $(DVI_FILES:.dvi=.ps)
20
21 STEPMAKE_TEMPLATES=tex documentation
22 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
23
24 export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
25 include $(depth)/make/stepmake.make 
26
27
28
29
30
31
32 dvi: $(OUT_BIB_FILES) $(DVI_FILES)
33
34
35 ps: $(PS_FILES)
36
37 # urg
38 default:
39
40 GENHTMLS = engraving colorado glossary computer-notation
41 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
42
43 #urg should generalise and move Lilypond -> StepMake
44 # URG.  Lilypond specific. Move out. 
45 $(outdir)/%.html: %.data $(depth)/VERSION
46         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ $<
47         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
48
49 $(outdir)/%.tex: %.data $(depth)/VERSION
50         $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
51
52
53 $(outdir)/glossary.dvi: $(outdir)/glossary-table.tex
54 $(outdir)/glossary.html: $(outdir)/glossary-table.html
55
56
57 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)
58         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
59           $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) \
60           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
61           $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
62
63 $(outdir)/%.bib: %.bib
64         ln -f $< $@
65
66 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
67 $(outdir)/%.html: %.bib
68         -bib2html $< $@
69
70 # Yeah right: 
71 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
72
73 #out/%: $(outdir)/%
74 #       cp -f $< $@