summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/recomp017/Makefile
blob: 6a2f92a875b3562fdd9180b215b206fcb89c6a05 (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 #13099

recomp017: clean
	echo 'first run'
	'$(TEST_HC)' $(TEST_HC_OPTS) --make D.hs
	sleep 1
	# A simple 'cp' would overwrite the original file,
	# pointed to by the symlink
	mv -f C2.hs C.hs
	touch C.hs
	echo 'second run'
	! '$(TEST_HC)' $(TEST_HC_OPTS) --make E.hs