aboutsummaryrefslogtreecommitdiff
path: root/mathcomp
diff options
context:
space:
mode:
authorEnrico Tassi2016-01-21 16:56:48 +0100
committerEnrico Tassi2016-01-21 16:56:48 +0100
commit481a2a3bb4902f02e816cfab162e9d88d7ce76b5 (patch)
tree53730a8968dcae11240495edb4f247eb78c2c5e2 /mathcomp
parent9d16212c7965d9caff2ad8154c2461d147463b04 (diff)
build script is now cygwin friendly
symlinks are not first class citizens on windows
Diffstat (limited to 'mathcomp')
-rw-r--r--mathcomp/ssreflect/Makefile.coq-makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/mathcomp/ssreflect/Makefile.coq-makefile b/mathcomp/ssreflect/Makefile.coq-makefile
index 9cce300..52beace 100644
--- a/mathcomp/ssreflect/Makefile.coq-makefile
+++ b/mathcomp/ssreflect/Makefile.coq-makefile
@@ -1,9 +1,10 @@
define coqmakefile
(echo "Generating Makefile.coq for Coq $(V) with COQBIN=$(COQBIN)";\
- ln -sf $(1)/plugin/$(V)/ssreflect.mllib .;\
- ln -sf $(1)/plugin/$(V)/ssrmatching.mli .;\
- ln -sf $(1)/plugin/$(V)/ssrmatching.ml4 .;\
- ln -sf $(1)/plugin/$(V)/ssreflect.ml4 .;\
+ if [ "$$OS" = "Windows_NT" ]; then LN=cp; else LN="ln -sf"; fi;\
+ $$LN $(1)/plugin/$(V)/ssreflect.mllib .;\
+ $$LN $(1)/plugin/$(V)/ssrmatching.mli .;\
+ $$LN $(1)/plugin/$(V)/ssrmatching.ml4 .;\
+ $$LN $(1)/plugin/$(V)/ssreflect.ml4 .;\
$(COQBIN)coq_makefile -f Make -o Makefile.coq)
endef