summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/recomp001/Makefile
blob: d99ab8966f9560f3540c5bb29b513ce810516b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

# Recompilation tests

clean:
	rm -f *.o *.hi
	rm -f B.hs C

# 001: removing an export should force a recompile of dependent modules.
# failed in GHC 6.4.

recomp001: clean
	cp B1.hs B.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 C.hs
	sleep 1
	cp B2.hs B.hs
	# Operating systems with poor timer resolution (e.g. Darwin) need a bit
	# of time here, lest GHC not realize that the file changed.
	-'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 C.hs