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