-# Texinfo_rules.make
-.SUFFIXES: .html .texinfo
+.SUFFIXES: .html .info .texi .texinfo
$(outdir)/%.info: $(outdir)/%.texi
- makeinfo --output=$@ $<
+ $(MAKEINFO) -I $(outdir) --output=$@ $<
-$(outdir)/%.html: $(outdir)/%.texi
- -makeinfo --force --output=$@ --html --no-headers $<
- $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/../index.html $@ $(wildcard $(basename $@)[0-9][0-9].html)
+$(outdir)/%.html: $(outdir)/%.texi
+ $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $<
-$(outdir)/%.dvi: $(outdir)/%.texi
-# --clean only in >= 3.12s
-# cd $(outdir); texi2dvi --clean ../$<
- cd $(outdir); texi2dvi ../$<
+$(outdir)/%.html.omf: %.texi
+ $(call GENERATE_OMF,html)
+
+$(outdir)/%.pdf.omf: %.texi
+ $(call GENERATE_OMF,pdf)
+
+$(outdir)/%.ps.gz.omf: %.texi
+ $(call GENERATE_OMF,ps.gz)
+
+# Generic rule not possible?
+$(outdir)/%/%.html: $(outdir)/%.texi
+ $(MAKEINFO) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
+
+
+$(outdir)/%.dvi: $(outdir)/%.texi
+ cd $(outdir); texi2dvi --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
$(outdir)/%.txt: $(outdir)/%.texi
- $(MAKEINFO) --no-split --no-headers --output $@ $<
+ $(MAKEINFO) -I $(src-dir) -I $(outdir) --no-split --no-headers --output $@ $<
$(outdir)/%.texi: %.texi
+ rm -f $@
cp $< $@
+
+