1 #-----------------------------------------------------------------------------
2 # $Id: should_compile.mk,v 1.4 2000/11/03 16:23:38 simonmar Exp $
3 # template for should_compile tests.
5 HS_SRCS = $(wildcard *.hs)
7 SRC_RUNTEST_OPTS += -x 0 \
8 $(foreach i,$(wildcard $*.stdout),-o1 $(i)) \
9 $(foreach i,$(wildcard $*.stderr),-o2 $(i))
12 @echo ---- Testing for successful compilation of $<
13 $(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@
17 # Most single-module tests are declared to be module ShouldCompile, so we
18 # can clean the .hi files in one go:
19 CLEAN_FILES += ShouldCompile.hi