diff options
| author | Cyril Cohen | 2015-07-21 15:46:21 +0200 |
|---|---|---|
| committer | Cyril Cohen | 2015-07-21 15:46:21 +0200 |
| commit | 152decfa952f9e90557f6c5b350c4849d18f012e (patch) | |
| tree | 572d2dd43ca4f2e9cc8208a022edf247fb33a669 | |
| parent | d410a44b96d72ee49eced1af590bae54e9a42bd7 (diff) | |
fix Makefile for trunk
| -rw-r--r-- | mathcomp/Makefile | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/mathcomp/Makefile b/mathcomp/Makefile index c5a0a3b..880977c 100644 --- a/mathcomp/Makefile +++ b/mathcomp/Makefile @@ -4,17 +4,11 @@ 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 +ifeq "$(shell $(COQBIN)/coqtop -v | head -1 | grep trunk | wc -l | sed 's/ *//g')" "1" +V=trunk else -V=$(BRANCH_coq) +V=$(shell $(COQBIN)/coqtop -v | head -1 | \ + sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/v\1/') endif ifeq "$V" "v8.4" |
