# Texinfo_rules.make
-.SUFFIXES: .1 .html .texinfo
-
-texi2man = $(step-bindir)/out/texi2man $< $@
-texi2html =\
- rm -f $@.urg;\
- cat $< | sed "s!@include.*!!" > $@.urg;\
- $(TEXI2HTML) $@.urg;\
- rm -f $@.urg;\
- mv $(@F).urg.html $@;\
- rm -f $(@F:%.html=%.html.urg_toc.html);\
- add-URLs $@
-
-$(outdir)/%.1: %.texinfo
- $(texi2man)
-
-# $(outdir)/%.info: %.texinfo
-# $(MAKEINFO) -o $@ $<
-
-$(outdir)/%.info: $(outdir)/%.texinfo
- $(MAKEINFO) -o $@ $<
-
-# $(outdir)/%.html: %.texinfo
-# $(texi2html)
-# add-html-footer --index $(depth)/../index.html $@
-
-# texi2html is as broken as pod2html 5004 :-)
-# we'll have to use pod2html 5003 for now.
-# don't burn your .pod sources!
-#
-$(outdir)/%.html: $(outdir)/%.texinfo
- $(texi2html)
- $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@
-
-$(outdir)/%.texinfo: %.texinfo
+.SUFFIXES: .html .info .texi .texinfo
+
+$(outdir)/%.info: $(outdir)/%.texi
+ -$(MAKEINFO) --force -I $(outdir) --output=$@ $<
+
+$(outdir)/%.html: $(outdir)/%.texi
+ -$(MAKEINFO) --force -I $(outdir) --output=$@ --html --no-split --no-headers $<
+# we want footers even if website builds (or is built) partly
+ $(footify) $@
+
+# Generic rule not possible?
+$(outdir)/%/%.html: $(outdir)/%.texi
+ -$(MAKEINFO) --force --output=$@ --html $<
+# we want footers even if website builds (or is built) partly
+ $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
+
+$(outdir)/%.dvi: $(outdir)/%.texi
+# ugh, --clean removes .. from TEXINPUTS?
+# cd $(outdir); texi2dvi --batch --clean ../$<
+ cd $(outdir); texi2dvi --batch ../$<
+
+$(outdir)/%.txt: $(outdir)/%.texi
+ $(MAKEINFO) --force -I../ -I $(outdir) --no-split --no-headers --output $@ $<
+
+$(outdir)/%.texi: %.texi
+ rm -f $@
cp $< $@
+ chmod -w $@
+
-$(outdir)/%.1: $(outdir)/%.texinfo
- -$(texi2man)