-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (19 loc) · 1.02 KB
/
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
.PHONY: all root logic models refinement syntax clean lines decomposition
LEAN_OPT =
LEAN_PATH = $(shell pwd):/usr/local/bin/../lib/lean/library:$(shell printenv LEAN_PATH)
all:
LEAN_PATH=$(LEAN_PATH) lean $(LEAN_OPT) --make util/ unitb/
root: logic models refinement syntax decomposition util/data/array.olean code
logic: unitb/logic/liveness.olean unitb/refinement/basic.olean
code: unitb/code/syntax.olean unitb/code/semantics.olean
models: unitb/models/nondet.olean unitb/models/det.olean unitb/models/simple.olean unitb/models/sched.olean unitb/models/ghost.olean
refinement: unitb/refinement/resched_data_ref.olean unitb/refinement/split.olean unitb/refinement/split_merge.olean unitb/refinement/reschedule.olean
syntax: unitb/syntax/exists.olean unitb/syntax/simple/machine.olean
decomposition: unitb/decomposition/component.olean
%.olean: %.lean $(shell lean $< --deps)
LEAN_PATH=$(LEAN_PATH) lean $(LEAN_OPT) --make $<
clean:
/usr/bin/find . -name "*.olean" -delete
# rm -rf _target
lines:
wc `git ls-files | grep .lean`