-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
48 lines (41 loc) · 1016 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ROOTS= bool bool-test bool-thms bool-thms2 bool-kleene bool-to-string \
braun-tree braun-tree-test \
bst \
combinators \
char \
datatypes \
functions \
eq \
int \
integer \
io io-test io-test2 \
level \
list list-test list-thms list-thms2 list-merge-sort list-merge-sort-test \
logic \
maybe maybe-thms \
nat nat-thms nat-division nat-division-wf nat-division-basic nat-to-string nat-tests nat-nonzero nat-log \
neq \
negation \
product product-thms \
runtime-only \
string string-format \
sum sum-thms \
termination \
tree tree-test \
trie trie-thms \
vector vector-test vector-sort \
relations bool-relations
SOURCES=$(ROOTS:=.agda)
DEPS=$(ROOTS:%=deps/%.deps)
TARGETS=$(ROOTS:=.agdai)
test-all: Makefile.deps $(TARGETS)
%.agdai : %.agda
agda -v 0 $<
Makefile.deps: $(DEPS)
@cat $(DEPS) > Makefile.deps
deps/%.deps : %.agda
@mkdir -p deps
@./find-deps.sh $< > $@
include Makefile.deps
clean:
rm -f Makefile.deps $(TARGETS) $(DEPS)