[project @ 1997-12-16 11:01:13 by simonm]
authorsimonm <unknown>
Tue, 16 Dec 1997 11:01:13 +0000 (11:01 +0000)
committersimonm <unknown>
Tue, 16 Dec 1997 11:01:13 +0000 (11:01 +0000)
Add SGML suffix rules.  Single-file documents only for the moment.

mk/suffix.mk

index 5d38b2c..8b69b15 100644 (file)
@@ -182,6 +182,31 @@ HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(H
        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!)