aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-03-24 11:03:10 +0000
committerYann Herklotz <git@yannherklotz.com>2022-03-24 11:03:10 +0000
commit18640c782f216e6e62e25ce24b6061ad93703cf6 (patch)
treee75477b32c70666d95c29999ffe9e4b16b42e5e5 /Makefile
parent4b012187df7c66bef2300252058f27ac79337325 (diff)
downloadvericert-18640c782f216e6e62e25ce24b6061ad93703cf6.tar.gz
vericert-18640c782f216e6e62e25ce24b6061ad93703cf6.zip
Update makefile and remove _CoqProject
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 3b51d00..978a109 100644
--- a/Makefile
+++ b/Makefile
@@ -22,11 +22,11 @@ COQMAKE := $(COQBIN)coq_makefile
COQDOCFLAGS := --no-lib-name -l
VS := src/Compiler.v src/Simulator.v src/HLSOpts.v $(foreach d, common hls bourdoncle, $(wildcard src/$(d)/*.v))
-LIT := $(wildcard lit/*.org)
+LIT := docs/basic-block-generation.org docs/scheduler.org docs/scheduler-languages.org
PREFIX ?= .
-.PHONY: all install proof clean extraction test
+.PHONY: all install proof clean extraction test force
all: lib/COMPCERTSTAMP
$(MAKE) proof
@@ -74,24 +74,27 @@ src/extraction/STAMP:
@$(COQEXEC) ./src/extraction/Extraction.v
@touch $@
-Makefile.coq:
+Makefile.coq: force
@echo "COQMAKE Makefile.coq"
$(COQBIN)coq_makefile $(COQINCLUDES) $(VS) -o Makefile.coq
+ echo "$(COQINCLUDES)" >_CoqProject
+
+force:
docs/vericert.1:
$(MAKE) -C docs vericert.1
-clean:: Makefile.coq
- $(MAKE) -f Makefile.coq clean
- $(MAKE) -C test clean
- rm -f Makefile.coq
-
detangle-all:
emacs --batch --eval "(progn(require 'org)(require 'ob-tangle)\
(setq org-src-preserve-indentation t)\
$(foreach vs,$(VS),(org-babel-detangle \"$(vs)\"))\
(org-save-all-org-buffers))"
+clean:: Makefile.coq
+ $(MAKE) -f Makefile.coq clean
+ $(MAKE) -C test clean
+ rm -f Makefile.coq
+
clean::
rm -f */*.v.d */*.glob */*.vo */*~ *~
rm -f src/extraction/*.ml src/extraction/*.mli