summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/driver/recomp005/Makefile
blob: a588cff176a111111ce64ddb557d632e1d2e77df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

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

recomp005: clean
	cp C1.hs C.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --make E.hs -O
	sleep 1
	cp C2.hs C.hs
	# Should recompile E, because C is now an orphan
	'$(TEST_HC)' $(TEST_HC_OPTS) --make E.hs -O