[project @ 2000-10-27 14:55:01 by simonmar]
[ghc-hetmet.git] / ghc / tests / mk / should_compile.mk
index cb08aa5..929ced2 100644 (file)
@@ -3,10 +3,12 @@
 
 HS_SRCS = $(wildcard *.hs)
 
-SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 0
+SRC_RUNTEST_OPTS += -x 0 \
+       $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
+       $(foreach i,$(wildcard $*.stderr),-o2 $(i))
 
 %.o : %.hs
-       @echo \*\*\* Testing for successful compilation of $<
+       @echo ---- Testing for successful compilation of $<
        @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
 
 all :: $(HS_OBJS)