forked from snu-sf/fairness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 838 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
COQMODULE := Fairness
COQTHEORIES := \
pico/*.v \
src/lib/*.v \
src/semantics/*.v \
src/simulation/*.v \
src/logic/*.v \
src/example/*.v \
.PHONY: all theories clean
all: build
build: Makefile.coq
$(MAKE) -f Makefile.coq all
quick: Makefile.coq
$(MAKE) -f Makefile.coq vio
Makefile.coq: Makefile $(COQTHEORIES)
(echo "-Q src/lib $(COQMODULE)"; \
echo "-Q src/semantics $(COQMODULE)"; \
echo "-Q src/simulation $(COQMODULE)"; \
echo "-Q src/logic $(COQMODULE)"; \
echo "-Q src/example $(COQMODULE)"; \
echo "-Q pico $(COQMODULE)"; \
\
echo $(COQTHEORIES)) > _CoqProject
coq_makefile -f _CoqProject -o Makefile.coq
%.vo: Makefile.coq
$(MAKE) -f Makefile.coq "$@"
%.vio: Makefile.coq
$(MAKE) -f Makefile.coq "$@"
clean:
$(MAKE) -f Makefile.coq clean
rm -f _CoqProject Makefile.coq Makefile.coq.conf