[project @ 2000-11-02 10:17:49 by simonpj]
[ghc-hetmet.git] / ghc / tests / mk / should_fail.mk
index ec39011..17b10e6 100644 (file)
@@ -3,7 +3,9 @@
 
 HS_SRCS = $(wildcard *.hs)
 
-SRC_RUNTEST_OPTS += -o1 $*.stdout -o2 $*.stderr -x 1
+SRC_RUNTEST_OPTS += -x 1 \
+       $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
+       $(foreach i,$(wildcard $*.stderr),-o2 $(i))
 
 %.o : %.hs
        @echo ---- Testing for failure to compile $<