aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssreflect/Makefile.detect-coq-version
diff options
context:
space:
mode:
authorEnrico2018-08-01 11:48:09 +0200
committerGitHub2018-08-01 11:48:09 +0200
commit247ec435a6dd1c17a42b75ae46763a9062f1f291 (patch)
treee78cba9b79b6f509a37d645a95139d143add6632 /mathcomp/ssreflect/Makefile.detect-coq-version
parent6c6c907438f4179ac335e7daa9f1ed030c0c8259 (diff)
parent629a7a065146679f14f95abf1de63a7ff3a2eacc (diff)
Merge pull request #213 from CohenCyril/Makefile
Rework the whole Makefile architecture
Diffstat (limited to 'mathcomp/ssreflect/Makefile.detect-coq-version')
-rw-r--r--mathcomp/ssreflect/Makefile.detect-coq-version31
1 files changed, 13 insertions, 18 deletions
diff --git a/mathcomp/ssreflect/Makefile.detect-coq-version b/mathcomp/ssreflect/Makefile.detect-coq-version
index 9c00aa3..0f7d9de 100644
--- a/mathcomp/ssreflect/Makefile.detect-coq-version
+++ b/mathcomp/ssreflect/Makefile.detect-coq-version
@@ -1,25 +1,20 @@
-BRANCH_coq = $(shell $(COQBIN)coqtop -v | head -1 | grep -E '(trunk|master)' \
+BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 | grep -E '(trunk|master)' \
| wc -l | sed 's/ *//g')
ifneq "$(BRANCH_coq)" "0"
-BRANCH_coq = trunk
+BRANCH_coq:= master
else
-BRANCH_coq = $(shell $(COQBIN)coqtop -v | head -1 \
- | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/v\1/')
+BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 \
+ | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/\1/')
endif
-HASH_coq = $(shell echo Quit. | $(COQBIN)coqtop 2>/dev/null | head -1 \
- | sed 's/^.*(\([a-f0-9]*\)).*/\1/' )
+V:=$(BRANCH_coq)
-HASH_coq_v85beta1 = eaa3d0b15adf4eb11ffb00ab087746a5b15c4d5d
-HASH_coq_v85beta2 = 94afd8996251c30d2188a75934487009538e1303
-
-V=$(BRANCH_coq)
-ifeq "$(HASH_coq)" "$(HASH_coq_v85beta1)"
-V=v8.5beta1
-$(error "$(V) not supported: From X Require Y does not find X.Z.Y, use 8.4 or 8.5 > beta2")
-endif
-ifeq "$(HASH_coq)" "$(HASH_coq_v85beta2)"
-V=v8.5beta2
-$(error "$(V) not supported: From X Require Y does not find X.Z.Y (in coqdep), use 8.4 or 8.5 > beta2")
-endif
+MLLIBEXTRA:=$(shell \
+ if [ $(V) = "8.6" ];\
+ then cp $(PLUGIN)/v$(V)/ssreflect_plugin.mlpack .;\
+ cp $(PLUGIN)/v$(V)/ssreflect.ml4 .;\
+ cp $(PLUGIN)/v$(V)/ssrbool.v $(SSR)/;\
+ cp $(PLUGIN)/v$(V)/ssrfun.v $(SSR)/;\
+ cp $(PLUGIN)/v$(V)/ssreflect.v $(SSR)/;\
+ echo "ssreflect_plugin.mlpack ssreflect.ml4"; fi)