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