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