From a16f524eae61a4f6cb49cc43318242a5d550c453 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Tue, 9 Feb 2016 19:58:52 +0000 Subject: [PATCH] Install target fix for ocamlfind_install on Windows. Relates to #409 --- scripts/mk_util.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/mk_util.py b/scripts/mk_util.py index 53f891d28..33f70c98d 100644 --- a/scripts/mk_util.py +++ b/scripts/mk_util.py @@ -3650,10 +3650,15 @@ class MakeRuleCmd(object): assert not ' ' in dir install_root = cls._install_root(dir, in_prefix, out) - cls.write_cmd(out, "mkdir -p {install_root}{dir}".format( - install_root=install_root, - dir=dir)) - + if is_windows(): + cls.write_cmd(out, "IF NOT EXIST {dir} (mkdir {dir})".format( + install_root=install_root, + dir=dir)) + else: + cls.write_cmd(out, "mkdir -p {install_root}{dir}".format( + install_root=install_root, + dir=dir)) + @classmethod def _is_path_prefix_of(cls, temp_path, target_as_abs): """