summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/recomp013/Makefile
blob: 7cb79460f13df0e4ab4a0c5ae5535e9d4621d8a9 (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

# bug #8247

recomp013: clean
	echo 'module A where a1 = 5; a2 = 42; a3 = 113' > A.hs
	echo 'module B (module A) where import A hiding (a1)' > B.hs
	echo 'module C where import B; a2 = 142' > C.hs
	echo 'first run'
	'$(TEST_HC)' $(TEST_HC_OPTS) --make C.hs
	sleep 1
	echo 'module B (module A) where import A hiding (a1, a2)' > B.hs
	echo 'second run'
	'$(TEST_HC)' $(TEST_HC_OPTS) --make C.hs