]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/texinfo-rules.make
release: 1.0.6
[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: $(outdir)/%.texinfo
19         $(MAKEINFO) -o $@ $<
20
21 # $(outdir)/%.html: %.texinfo
22 #       $(texi2html)
23 #       add-html-footer --index $(depth)/../index.html $@
24
25 # texi2html is as broken as pod2html 5004 :-) 
26 # we'll have to use pod2html 5003 for now.
27 # don't burn your .pod sources!
28 #
29 $(outdir)/%.html: $(outdir)/%.texinfo
30         $(texi2html)
31         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@
32
33 $(outdir)/%.1: $(outdir)/%.texinfo
34         -$(texi2man)
35