aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/solvable
diff options
context:
space:
mode:
authorCyril Cohen2015-07-18 14:38:59 +0200
committerCyril Cohen2015-07-18 16:40:17 +0200
commit40021d41b085276c4c26bc5de7484add920e31f0 (patch)
tree68a2b7f6fc1e2d788e5fcb7deadeea7de5e5c95a /mathcomp/solvable
parent532de9b68384a114c6534a0736ed024c900447f9 (diff)
update to preserve backward compatibility with v8.4
Diffstat (limited to 'mathcomp/solvable')
-rw-r--r--mathcomp/solvable/Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/mathcomp/solvable/Makefile b/mathcomp/solvable/Makefile
index e872352..8f03823 100644
--- a/mathcomp/solvable/Makefile
+++ b/mathcomp/solvable/Makefile
@@ -4,6 +4,25 @@ ifeq "$(COQBIN)" ""
COQBIN=$(dir $(shell which coqtop))/
endif
+BRANCH_coq = $(shell $(COQBIN)/coqtop -v | head -1 | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/v\1/')
+
+HASH_coq = $(shell echo Quit. | $(COQBIN)/coqtop 2>&1 | head -1 | sed 's/^.*(\([a-f0-9]*\)).*/\1/' )
+
+HASH_coq_v85beta1 = eaa3d0b15adf4eb11ffb00ab087746a5b15c4d5d
+
+
+ifeq "$(HASH_coq)" "$(HASH_coq_v85beta1)"
+V=v8.5beta1
+else
+V=$(BRANCH_coq)
+endif
+
+ifeq "$V" "v8.4"
+COQDEP=../../etc/utils/ssrcoqdep
+else
+COQDEP=$(COQBIN)/coqdep
+endif
+
OLD_MAKEFLAGS:=$(MAKEFLAGS)
MAKEFLAGS+=-B
@@ -12,7 +31,8 @@ MAKEFLAGS+=-B
%:
$(H)[ -e Makefile.coq ] || $(COQBIN)/coq_makefile -f Make -o Makefile.coq
$(H)MAKEFLAGS=$(OLD_MAKEFLAGS) $(MAKE) --no-print-directory \
- -f Makefile.coq $*
+ -f Makefile.coq $* \
+ COQDEP='$(COQDEP) -c'
.PHONY: clean
clean: