#-----------------------------------------------------------------------------
# Runtest rules for calling $(HC) on a single-file Haskell program
-%.hs : %.runtest
- $(TIME) $(RUNTEST) $(HC) $(RUNTEST_FLAGS) -o2 $*.stderr $<
+%.runtest : %.hs
+ $(TIME) $(RUNTEST) $(HC) $(RUNTEST_OPTS) $<
#-----------------------------------------------------------------------------
# Doc processing suffix rules
fig2dev -L latex $< $@
#-----------------------------------------------------------------------------
+# SGML suffix rules
+#
+# make sure these don't conflict with the literate rules!
+
+%.sgml : %.vsgml
+ @$(RM) $@
+ expand $*.verb | $(SGMLVERB) > $@
+
+%.dvi : %.sgml
+ @$(RM) $@
+ $(SGML2LATEX) -m --output=dvi $<
+
+%.html : %.sgml
+ @$(RM) $@
+ $(SGML2HTML) $<
+
+%.info : %.sgml
+ @$(RM) $@
+ $(SGML2INFO) $<
+
+%.txt : %.sgml
+ @$(RM) $@
+ $(SGML2TXT) $<
+
+#-----------------------------------------------------------------------------
# Literate suffix rules
# ToDo: somehow macroize this lot. (if only!)