blob: 8e66f82abb8182e8a726da77d9f1d3471b74414c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
# Recompilation test for when .hi files are up to date but .o files are
# not
clean:
rm -f Main *.o *.hi B.hs
recomp019: clean
cp B1.hs B.hs
echo 'first run'
'$(TEST_HC)' $(TEST_HC_OPTS) --make Main
./Main
# Update B.hs
cp B2.hs B.hs
# Update B.hi (but not B.o)
'$(TEST_HC)' $(TEST_HC_OPTS) --make B -fno-code -fwrite-interface
# Recompile
echo 'second run'
'$(TEST_HC)' $(TEST_HC_OPTS) --make Main
./Main
|