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

# Recompilation tests

clean:
	rm -f *.o *.hi
	rm -f X.hs
	rm -f Main$(exeext)

# bug #5614

recomp010: clean
	cp X1.hs X.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -O Main.hs
	./Main
	sleep 1
	cp X2.hs X.hs
	rm X.o
	-'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -O Main.hs
	./Main