- $(RM) $@ ; if [ ! -d $(basename $@) ]; then mkdir $(basename $@) ; else exit 0; fi; \
- find $(basename $@) -name '*.$(way_)o' -print | xargs $(RM) __rm_food;
+ $(RM) $@ ; if [ ! -d $(basename $@) ]; then mkdir $(basename $@); else \
+ find $(basename $@) -name '*.$(way_)o' -print | xargs $(RM) __rm_food ; fi
HASKELL_SPLIT_POST= touch $@
HASKELL_PRE_COMPILE=$(patsubst %,$(HASKELL_SPLIT_PRE),$(filter -split-objs,$(HC_OPTS)))
HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(HC_OPTS)))
HASKELL_SPLIT_POST= touch $@
HASKELL_PRE_COMPILE=$(patsubst %,$(HASKELL_SPLIT_PRE),$(filter -split-objs,$(HC_OPTS)))
HASKELL_POST_COMPILE=$(patsubst %,$(HASKELL_SPLIT_POST),$(filter -split-objs,$(HC_OPTS)))
#-----------------------------------------------------------------------------
# Runtest rules for calling $(HC) on a single-file Haskell program
#-----------------------------------------------------------------------------
# Runtest rules for calling $(HC) on a single-file Haskell program
#-----------------------------------------------------------------------------
# Doc processing suffix rules
#-----------------------------------------------------------------------------
# Doc processing suffix rules
+# 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) $<
+
+#-----------------------------------------------------------------------------