From: simonmar Date: Tue, 12 Dec 2000 13:57:40 +0000 (+0000) Subject: [project @ 2000-12-12 13:57:40 by simonmar] X-Git-Tag: Approximately_9120_patches~3120 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d4d5bd3683603cfbd9e172eb5b6ea96307e29319;p=ghc-hetmet.git [project @ 2000-12-12 13:57:40 by simonmar] Allow for compiling to .hc only (substitute for now-defunct -noC option) --- diff --git a/ghc/tests/mk/should_compile.mk b/ghc/tests/mk/should_compile.mk index 3fdcc62..5d9b1ef 100644 --- a/ghc/tests/mk/should_compile.mk +++ b/ghc/tests/mk/should_compile.mk @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: should_compile.mk,v 1.4 2000/11/03 16:23:38 simonmar Exp $ +# $Id: should_compile.mk,v 1.5 2000/12/12 13:57:40 simonmar Exp $ # template for should_compile tests. HS_SRCS = $(wildcard *.hs) @@ -12,7 +12,15 @@ SRC_RUNTEST_OPTS += -x 0 \ @echo ---- Testing for successful compilation of $< $(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -c $< -o $@ +%.hc : %.hs + @echo ---- Testing for successful compilation of $< + $(RUNTEST) $(HC) $(RUNTEST_OPTS) -- $(HC_OPTS) -C $< -o $@ + +ifeq "$(HCOnly)" "YES" +all :: $(HS_HCS) +else all :: $(HS_OBJS) +endif # Most single-module tests are declared to be module ShouldCompile, so we # can clean the .hi files in one go: