[project @ 1998-11-23 11:51:52 by sof]
[ghc-hetmet.git] / mk / target.mk
index 44b9bf9..cbd0308 100644 (file)
@@ -876,13 +876,17 @@ SGML_TEXT = $(SGML_DOC).txt
 
 else # no SGML_DOC
 
+ifeq "$(VSGML_SRCS)" ""
 VSGML_SRCS = $(wildcard *.vsgml)
+endif
 
+ifeq "$(SGML_SRCS)" ""
 ifneq "$(VSGML_SRCS)" ""
 SGML_SRCS  = $(addsuffix .sgml, $(basename $(VSGML_SRCS)))
 else
 SGML_SRCS  = $(wildcard *.sgml)
 endif
+endif
 
 SGML_DVI  = $(addsuffix  .dvi, $(basename $(SGML_SRCS)))
 SGML_PS   = $(addsuffix   .ps, $(basename $(SGML_SRCS)))
@@ -946,7 +950,7 @@ ifneq "$(HS_OBJS)" ""
 ifneq "$(filter -split-objs,$(HC_OPTS))" ""
 clean ::
        find $(patsubst %.$(way_)o,%,$(HS_OBJS)) -name '*.$(way_)o' -print | xargs $(RM) __rm_food
-       -rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS))
+       -rmdir $(patsubst %.$(way_)o,%,$(HS_OBJS)) > /dev/null 2>&1
 endif
 endif