aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssreflect/Makefile.coq-makefile
blob: e4f12adaf1b4fb1e504cbfd8666559ef72ebb43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define coqmakefile
	(echo "Generating Makefile.coq for Coq $(V) with COQBIN=$(COQBIN)";\
	if [ "$$OS" = "Windows_NT" ]; then LN=cp; else LN="ln -sf"; fi;\
	MLLIB=ssreflect_plugin.mlpack;\
	EXTRA=;\
	case $(V) in\
       	v8.5*|v8.4*)\
		$$LN $(1)/plugin/$(V)/ssrmatching.mli .;\
		$$LN $(1)/plugin/$(V)/ssrmatching.ml4 .;\
		$$LN $(1)/plugin/$(V)/ssrmatching.v .;\
		$$LN $(1)/plugin/$(V)/ssreflect_plugin.mllib .;\
		EXTRA="ssrmatching.mli ssrmatching.ml4 ssrmatching.v";\
		MLLIB=ssreflect_plugin.mllib;\
	;;\
	*)\
		$$LN $(1)/plugin/$(V)/ssreflect_plugin.mlpack .;\
	;;\
	esac;\
	$$LN $(1)/plugin/$(V)/ssreflect.ml4 .;\
	$(COQBIN)coq_makefile -f Make $$MLLIB $$EXTRA -o Makefile.coq)
endef