summaryrefslogtreecommitdiff
path: root/testsuite/tests/annotations/should_compile/th/Makefile
blob: b10fc725db17d95c398f6e1f74875160ac14a171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

annth_make:
	$(MAKE) clean_annth_make
	mkdir build_make
	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 --make \
	   -odir build_make -hidir build_make -o build_make/annth annth.hs

clean_annth_make:
	rm -rf build_make

annth_compunits:
	$(MAKE) clean_annth_compunits
	mkdir build_compunits
	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 \
	  -odir build_compunits -hidir build_compunits \
	  -c AnnHelper.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 \
	  -odir build_compunits -hidir build_compunits \
	  -c TestModule.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 \
	  -odir build_compunits -hidir build_compunits \
	  -c TestModuleTH.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) -v0 -ibuild_compunits \
	  -odir build_compunits -hidir build_compunits \
	  -c annth.hs

clean_annth_compunits:
	rm -rf build_compunits

.PHONY: annth_make clean_annth_make annth_compunits clean_annth_compunits