]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/GNUmakefile
patch::: 1.3.106.jcn2
[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 # Cancel default info rule
33 $(outdir)/%.info: $(outdir)/%.texi
34
35 # info is now built by default via texinfo-rules
36 # we must build them by default, otherwise they get built during make install
37 info: $(INFO_FILES)
38
39 default: 
40
41 DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
42
43 local-WWW: $(HTML_FILES) $(datafiles) $(PS_GZ_FILES) $(DEEP_HTML_FILES)
44         $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
45         $(MAKE) footify
46         -mkdir $(outdir)/lilypond 
47         ln -f $(outdir)/*.png $(outdir)/lilypond
48         $(MAKE) deep-footify
49
50 #       $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation' \
51 #          $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
52 #         | sed "s!$(outdir)/!!g" > $(outdir)/index.html
53
54 $(outdir)/%.bib: %.bib
55         ln -f $< $@
56 # we want footers even if website builds (or is built) partly
57         $(MAKE) footify
58
59 localclean:
60         rm -f fonts.aux fonts.log feta*.tfm feta*.*pk 
61
62 backdoc-WWW: $(outdir)/lilypond-internals/lilypond-internals.html
63         $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals
64
65 #ugh. lily/OUT/lilypond hardcoded.
66 # when cross-compiling, we don't have lilypond
67 ifneq ($(CROSS),yes)
68 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
69         cd $(outdir) && ../$(depth)/$(builddir)/lily/out/lilypond ../$(src-depth)/ly/generate-documentation
70         -ln $(outdir)/lilypond-internals.texi $(outdir)/lilypond-internals.nexi
71 else
72 $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi:
73 ##      -cd $(outdir) && lilypond ../$(src-depth)/ly/generate-documentation
74 ##programming error: Improbable offset for translation: setting to zero (Continuing; cross thumbs)
75 ##programming error: Molecule::add_at_edge: adding empty molecule. (Continuing; cross thumbs)
76         touch $@
77         touch $(outdir)/$(*F).nexi
78 endif
79
80 # Generic rule not possible?
81 # $(outdir)/%/%.html: $(outdir)/%.texi
82 $(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
83         -$(MAKEINFO) --force --output=$@ --html $<
84 # we want footers even if website builds (or is built) partly
85         $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
86
87
88 $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-internals.texi
89         -$(MAKEINFO) --force --output=$@ --html $<
90 # we want footers even if website builds (or is built) partly
91         $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
92
93