aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest
diff options
context:
space:
mode:
authorCyril Cohen2015-04-08 13:38:41 +0200
committerCyril Cohen2015-04-08 13:38:41 +0200
commit737f79e968a4832d15f6eb93b5bf24c0267fbecb (patch)
treed814e7072823ce9036e9984868cc54c28c14f3d9 /mathcomp/ssrtest
parentabe2354abf63ad98dbe7e54a34e59e20b38d3d55 (diff)
makefiles that are version dependent
Diffstat (limited to 'mathcomp/ssrtest')
-rw-r--r--mathcomp/ssrtest/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/mathcomp/ssrtest/Makefile b/mathcomp/ssrtest/Makefile
index 4bcf4fb..3614d33 100644
--- a/mathcomp/ssrtest/Makefile
+++ b/mathcomp/ssrtest/Makefile
@@ -7,6 +7,12 @@ MAKEFLAGS := -r
COQMAKEFILE := Makefile.coq
COQMAKE := +$(MAKE) -f $(COQMAKEFILE)
+VERSION_Coq = $(shell $(COQBIN)/coqtop -v | head -1 | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/v\1/')
+
+ifeq "$(VERSION_Coq)" ""
+$(error no version number found for coq)
+endif
+
all: $(COQMAKEFILE)
$(COQMAKE) all
@@ -23,4 +29,5 @@ tags:
install:
%: Makefile.coq
+ sed -i -e "s/^(\*$(VERSION_Coq) *\(.*\) *\*)/\1/" *.v
$(COQMAKE) $@