]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/metadoc/GNUmakefile
patch::: 1.2.8.jcn2
[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
10 DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi)  $(TELY_FILES:.tely=.dvi))
11 OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
12
13
14 OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
15 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
16 EL_FILES = $(wildcard *.el)
17 BIB_FILES= $(wildcard *.bib)
18 EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES)  $(TEX_FILES) $(wildcard *.sty) 
19 HTML_FILES = $(addprefix $(outdir)/,  $(TELY_FILES:.tely=.html))
20 PS_FILES = $(DVI_FILES:.dvi=.ps)
21
22 STEPMAKE_TEMPLATES=tex documentation
23 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
24
25 export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
26 include $(depth)/make/stepmake.make 
27
28
29
30
31
32
33 dvi: $(DVI_FILES)
34
35 ps: $(PS_FILES)
36
37 # urg
38 default:
39
40 GENHTMLS = engraving colorado  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         $(footify) $@
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
54 local-WWW-donotdoit: $(HTML_FILES) $(OUTTEX_FILES:.doc=.ps.gz)  $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles) ps
55         $(PYTHON) $(step-bindir)/ls-latex.py --title 'LaTeX documents about design and implementation of LilyPond' \
56           $(TELY_FILES)  $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
57           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
58         $(footify) $(outdir)/index.html
59
60 $(outdir)/%.bib: %.bib
61         ln -f $< $@
62
63 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
64 $(outdir)/%.html: %.bib
65         -bib2html $< $@
66         $(footify) $@
67
68 # Yeah right: 
69 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
70
71 #out/%: $(outdir)/%
72 #       cp -f $< $@
73
74 locamlclean:
75         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk