forked from snu-sf/promising-coq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 1011 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
COQMODULE := cmem
COQTHEORIES := lib/sflib/*.v lib/hahn/*.v src/*/*.v
.PHONY: all theories clean
all: quick
build: sflib Makefile.coq
$(MAKE) -f Makefile.coq all
quick: sflib-quick Makefile.coq
$(MAKE) -f Makefile.coq quick
sflib: lib/sflib
$(MAKE) -C lib/sflib
sflib-quick: lib/sflib
$(MAKE) -C lib/sflib quick
Makefile.coq: Makefile $(COQTHEORIES)
(echo "-R lib/sflib sflib"; \
echo "-R lib/hahn $(COQMODULE)"; \
\
echo "-R src/lib $(COQMODULE)"; \
echo "-R src/lang $(COQMODULE)"; \
echo "-R src/while $(COQMODULE)"; \
echo "-R src/prop $(COQMODULE)"; \
echo "-R src/opt $(COQMODULE)"; \
echo "-R src/drf $(COQMODULE)"; \
echo "-R src/invariant $(COQMODULE)"; \
echo "-R src/axiomatic $(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