aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssreflect/Makefile.detect-coq-version
blob: 385c078772c7b8368608276adfc47c509b38d25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 | grep -E '(trunk|master)' \
	     | wc -l | sed 's/ *//g')

ifneq "$(BRANCH_coq)" "0"
BRANCH_coq:= master
else
BRANCH_coq:= $(shell $(COQBIN)coqtop -v | head -1 \
	     | sed 's/.*version \([0-9]\.[0-9]\)[^ ]* .*/\1/')
endif

V:=$(BRANCH_coq)

MLLIBEXTRA:=$(shell \
	if [ $(V) = "8.6" ];\
	   then cp $(SSR)/plugin/v$(V)/ssreflect_plugin.mlpack .;\
		cp $(SSR)/plugin/v$(V)/ssreflect.ml4 .;\
		cp $(SSR)/plugin/v$(V)/ssrbool.v $(SSR)/;\
		cp $(SSR)/plugin/v$(V)/ssrfun.v $(SSR)/;\
		cp $(SSR)/plugin/v$(V)/ssreflect.v $(SSR)/;\
		echo "ssreflect_plugin.mlpack ssreflect.ml4"; fi)