]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/GNUmakefile
patch::: 1.3.104.jcn3
[lilypond.git] / Documentation / user / GNUmakefile
1 # Documentation/tex/Makefile
2
3 depth=../..
4
5
6
7 LATEX_FILES =$(wildcard *.latex)
8
9
10 # todo: add latex.
11 DVI_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.dvi))
12
13 EXTRA_DIST_FILES= $(LATEX_FILES)    $(wildcard *.itexi *.itely)
14
15 HTML_FILES = $(addprefix $(outdir)/, $(TELY_FILES:.tely=.html))
16
17 PS_FILES = $(DVI_FILES:.dvi=.ps)  $(OUTDOC_FILES:.doc=.ps) $(OUTTEX_FILES:.tex=.ps)
18
19 PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES))
20
21 INFO_FILES = $(addprefix $(outdir)/, lilypond.info lilypond-internals.info)
22
23 STEPMAKE_TEMPLATES=tex texinfo documentation
24 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
25
26 include $(depth)/make/stepmake.make 
27
28 dvi: $(DVI_FILES)
29
30 ps: $(PS_FILES)
31
32 info: $(INFO_FILES)
33
34 default: info
35
36 local-WWW: $(HTML_FILES)   $(datafiles) $(PS_GZ_FILES) backdoc-WWW
37         $(SHELL) $(buildscript-dir)/install-info-html.sh $(outdir) lilypond lilypond-internals
38         $(MAKE) footify
39         ln -f $(outdir)/*.png $(outdir)/lilypond
40         $(MAKE) deep-footify
41
42 deep-footify:
43         $(PYTHON) $(step-bindir)/add-html-footer.py --index=../../$(depth)/ --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION) --header=$(depth)/Documentation/header.html.in --footer $(depth)/Documentation/footer.html.in $(sort $(wildcard $(outdir)/*/*.html))
44
45
46 #       $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
47 #          $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
48 #         | sed "s!$(outdir)/!!g" > $(outdir)/index.html
49
50 $(outdir)/%.bib: %.bib
51         ln -f $< $@
52 # we want footers even if website builds (or is built) partly
53         $(MAKE) footify
54
55 localclean:
56         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk 
57
58 backdoc-WWW: $(outdir)/lilypond-internals.html
59         $(MAKE) footify
60
61 #ugh. lily/OUT/lilypond hardcoded.
62 # when cross-compiling, we don't have lilypond
63 $(outdir)/lilypond-internals.texi:
64         if [ -e $(depth)/$(builddir)/lily/out/lilypond ]; then \
65                 cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation; \
66         else \
67                 touch $@; \
68         fi