Commit d4d5bd36 authored by simonmar's avatar simonmar

[project @ 2000-12-12 13:57:40 by simonmar]

Allow for compiling to .hc only (substitute for now-defunct -noC option)
parent 57169c9e
#-----------------------------------------------------------------------------
# $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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment