-# Texinfo_rules.make
.SUFFIXES: .html .info .texi .texinfo
$(outdir)/%.info: $(outdir)/%.texi
- -$(MAKEINFO) --force --output=$@ $<
+ $(MAKEINFO) -I $(outdir) --output=$@ $<
$(outdir)/%.html: $(outdir)/%.texi
- -$(MAKEINFO) --force --output=$@ --html --no-split --no-headers $<
+ $(MAKEINFO) -I $(outdir) --output=$@ --html --no-split --no-headers $<
# we want footers even if website builds (or is built) partly
$(footify) $@
+$(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) --force --output=$@ --html $<
+ $(MAKEINFO) --output=$@ --html $<
# we want footers even if website builds (or is built) partly
$(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
-$(outdir)/%.dvi: $(outdir)/%.texi
-# --clean only in >= 3.12s
-# cd $(outdir); texi2dvi --clean ../$<
- cd $(outdir); texi2dvi ../$<
+$(outdir)/%.dvi: $(outdir)/%.texi
+ cd $(outdir); texi2dvi --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
$(outdir)/%.txt: $(outdir)/%.texi
- $(MAKEINFO) -I../ --no-split --no-headers --output $@ $<
+ $(MAKEINFO) -I $(pwd) -I $(outdir) --no-split --no-headers --output $@ $<
$(outdir)/%.texi: %.texi
+ rm -f $@
cp $< $@
+ chmod -w $@