-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (23 loc) · 912 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
SRC_DIRS := 'coqtla/src' 'coqtla/external/stdpp/stdpp' 'coqtla/external/coq-record-update'
ALL_VFILES := $(shell find $(SRC_DIRS) -name "*.v")
all: default extraction_core
default: Makefile.coq
$(MAKE) -f Makefile.coq
quick: Makefile.coq
$(MAKE) -f Makefile.coq quick
install: Makefile.coq
$(MAKE) -f Makefile.coq install
clean: Makefile.coq clean_extraction
$(MAKE) -f Makefile.coq cleanall
rm -f Makefile.coq Makefile.coq.conf
clean_extraction:
cd Extraction/; rm -f extracted/*.ml extracted/*.mli; dune clean; cd ..
clean_driver:
rm -f Extraction/Driver.vo
extraction: clean_driver extraction_core
extraction_core: Makefile.coq
$(MAKE) -f Makefile.coq Extraction/Driver.vo
cd Extraction/; dune build; cd ..
Makefile.coq: _CoqProject
coq_makefile -f _CoqProject -o Makefile.coq $(ALL_VFILES)
.PHONY: all default quick install extraction_core extraction clean clean_driver clean_extraction