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