summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_recompile/Makefile
blob: 87fab6348af64c4c5dd1f0ec170bb102df1181e7 (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

# Test for trac #481. GHC should notice that the code that generates
# the splice has changed, and thus re-run it.

clean:
	rm -f *.o
	rm -f hi
	rm -f test test2
	rm -f Sub.hs

TH_recompile:
	$(MAKE) clean
	cp Sub1.hs Sub.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -XTemplateHaskell Main.hs -o test
	cp Sub2.hs Sub.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -XTemplateHaskell Main.hs -o test2
	./test
	./test2