]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/texinfo-rules.make
release: 1.0.4
[lilypond.git] / stepmake / stepmake / texinfo-rules.make
1 # Texinfo_rules.make
2
3 .SUFFIXES: .1 .html .texinfo
4
5 texi2man = $(step-bindir)/out/texi2man $< $@
6 texi2html =\
7     rm -f $@.urg;\
8     cat $< | sed "s!@include.*!!" > $@.urg;\
9     $(TEXI2HTML) $@.urg;\
10     rm -f $@.urg;\
11     mv $(@F).urg.html $@;\
12     rm -f $(@F:%.html=%.html.urg_toc.html);\
13     add-URLs $@
14
15 $(outdir)/%.1: %.texinfo
16         $(texi2man)
17
18 # $(outdir)/%.info: %.texinfo
19 #       $(MAKEINFO) -o $@ $<
20
21 $(outdir)/%.info: $(outdir)/%.texinfo
22         $(MAKEINFO) -o $@ $<
23
24 # $(outdir)/%.html: %.texinfo
25 #       $(texi2html)
26 #       add-html-footer --index $(depth)/../index.html $@
27
28 # texi2html is as broken as pod2html 5004 :-) 
29 # we'll have to use pod2html 5003 for now.
30 # don't burn your .pod sources!
31 #
32 $(outdir)/%.html: $(outdir)/%.texinfo
33         $(texi2html)
34         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@
35
36 $(outdir)/%.texinfo: %.texinfo
37         cp $< $@
38
39 $(outdir)/%.1: $(outdir)/%.texinfo
40         -$(texi2man)
41