Merge branch 'master' of http://darcs.haskell.org/testsuite
[ghc.git] / testsuite / tests / driver / recomp001 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 # -fforce-recomp makes lots of driver tests trivially pass, so we
6 # filter it out from $(TEST_HC_OPTS).
7 TEST_HC_OPTS_NO_RECOMP = $(filter-out -fforce-recomp,$(TEST_HC_OPTS))
8
9 # Recompilation tests
10
11 clean:
12 rm -f *.o *.hi
13 rm -f B.hs C
14
15 # 001: removing an export should force a recompile of dependent modules.
16 # failed in GHC 6.4.
17
18 recomp001: clean
19 cp B1.hs B.hs
20 '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) --make -v0 C.hs
21 sleep 1
22 cp B2.hs B.hs
23 -'$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) --make -v0 C.hs