[project @ 2000-06-12 16:20:31 by panne]
[ghc-hetmet.git] / ghc / tests / mk / should_fail.mk
1 #-----------------------------------------------------------------------------
2 # template for should_fail tests
3
4 HS_SRCS = $(wildcard *.hs)
5
6 SRC_RUNTEST_OPTS += -x 1 \
7         $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
8         $(foreach i,$(wildcard $*.stderr),-o2 $(i))
9
10 %.o : %.hs
11         @echo ---- Testing for failure to compile $<
12         @$(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
13
14 all :: $(HS_OBJS)