Makefile 3.04 KB
Newer Older
Alan Zimmerman's avatar
Alan Zimmerman committed
1 2 3 4 5 6
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

clean:
	rm -f *.o *.hi
7
	rm -f annotations comments parseTree
8
	rm -f listcomps
9
	rm -f stringSource
Alan Zimmerman's avatar
Alan Zimmerman committed
10

11 12
.PHONY: annotations
annotations:
13
	rm -f annotations.o annotations.hi
Alan Zimmerman's avatar
Alan Zimmerman committed
14 15 16
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc annotations
	./annotations "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"

17 18
.PHONY: parseTree
parseTree:
19
	rm -f parseTree.o parseTree.hi
Alan Zimmerman's avatar
Alan Zimmerman committed
20 21 22
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc parseTree
	./parseTree "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"

23 24
.PHONY: comments
comments:
25
	rm -f comments.o comments.hi
Alan Zimmerman's avatar
Alan Zimmerman committed
26 27 28
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc comments
	./comments "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"

29
.PHONY: exampleTest
30
exampleTest:
31
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" AnnotationTuple
Alan Zimmerman's avatar
Alan Zimmerman committed
32

33
.PHONY: listcomps
34 35 36 37 38
listcomps:
	rm -f listcomps.o listcomps.hi
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc listcomps
	./listcomps "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"

39 40
.PHONY: T10358
T10358:
41
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10358
42

43
.PHONY: T10396
44
T10396:
45
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10396
46 47 48

.PHONY: T10255
T10255:
49
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10255
50

51 52
.PHONY: T10357
T10357:
53
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10357
54

55
.PHONY: T10268
56
T10268:
57
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10268
58

59
.PHONY: T10280
60
T10280:
61
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10280
62

63
.PHONY: T10269
64
T10269:
65 66
	# Ignore result code, we have an unattached (superfluous) AnnVal
	- $(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10269
67 68 69

.PHONY: T10312
T10312:
70
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10312
71

72 73
.PHONY: T10307
T10307:
74
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10307
75

76 77
.PHONY: T10309
T10309:
78
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10309
79

80
.PHONY: boolFormula
81
boolFormula:
82
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" TestBoolFormula
83

84
.PHONY: T10278
85
T10278:
86
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10278
87

88
.PHONY: T10354
89
T10354:
90
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10354
91

92 93
.PHONY: T10399
T10399:
94
	$(CHECK_API_ANNOTATIONS) "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10399
95 96 97 98 99 100

.PHONY: T10313
T10313:
	rm -f stringSource.o stringSource.hi
	'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc stringSource
	./stringSource "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10313