# Mudela_rules.make
-.SUFFIXES: .doc .dvi .mudtex
-
-
+.SUFFIXES: .doc .dvi .mudtex .tely .texi
$(outdir)/%.latex: %.doc
cd $(outdir); $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies ../$<
- sed 's! \.\./! !g'< $(basename $@).dep > $(outdir)/temp.dep
- sed 's!^\(.*\):!'$(outdir)'/\1:!g' < $(outdir)/temp.dep > $(basename $@).dep
- rm $(outdir)/temp.dep
+# sed 's! \.\./! !g'< $(basename $@).dep > $(outdir)/temp.dep
+# sed 's!^\(.*\):!'$(outdir)'/\1:!g' < $(outdir)/temp.dep > $(basename $@).dep
+# rm $(outdir)/temp.dep
+
+$(outdir)/%.texi: %.tely
+ cd $(outdir); $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --format=texi ../$<
+
+$(outdir)/%.info: $(outdir)/%.texi
+ makeinfo --output=$@ $<
+
+$(outdir)/%.html: $(outdir)/%.texi
+ makeinfo --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)/%.dvi: $(outdir)/%.texi
+ cd $(outdir); texi2dvi --clean ../$<