From 1243f2a0d3316961a04c43b6080ef2bd7e76130c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 13 Sep 2013 21:37:43 -0400 Subject: [PATCH] Windows: do not fail if output directories exist Quote path names in case there are ever spaces Prepend $(MKDIR) rule is "-" to avoid failures if the output directories already exist. Change-Id: I1e5cfb408042617a73edeeae99eb269a061ba61d --- windows/NTMakefile.w32 | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/windows/NTMakefile.w32 b/windows/NTMakefile.w32 index e57da7518..bcac8554a 100644 --- a/windows/NTMakefile.w32 +++ b/windows/NTMakefile.w32 @@ -371,38 +371,38 @@ announce-tools: prep:: mkdirs mkdirs: -! if !exist($(OBJ)) - $(MKDIR) $(OBJ) +! if !exist("$(OBJ)") + -$(MKDIR) "$(OBJ)" ! endif -! if !exist($(DESTDIR)) - $(MKDIR) $(DESTDIR) +! if !exist("$(DESTDIR)") + -$(MKDIR) "$(DESTDIR)" ! endif -! if !exist($(LIBDIR)) - $(MKDIR) $(LIBDIR) +! if !exist("$(LIBDIR)") + -$(MKDIR) "$(LIBDIR)" ! endif -! if !exist($(BINDIR)) - $(MKDIR) $(BINDIR) +! if !exist("$(BINDIR)") + -$(MKDIR) "$(BINDIR)" ! endif -! if !exist($(PLUGINDIR)) - $(MKDIR) $(PLUGINDIR) +! if !exist("$(PLUGINDIR)") + -$(MKDIR) "$(PLUGINDIR)" ! endif -! if !exist($(INCDIR)) - $(MKDIR) $(INCDIR) +! if !exist("$(INCDIR)") + -$(MKDIR) "$(INCDIR)" ! endif -! if !exist($(DOCDIR)) - $(MKDIR) $(DOCDIR) +! if !exist("$(DOCDIR)") + -$(MKDIR) "$(DOCDIR)" ! endif -! if !exist($(INCDIR)\gssapi) - $(MKDIR) $(INCDIR)\gssapi +! if !exist("$(INCDIR)\gssapi") + -$(MKDIR) "$(INCDIR)\gssapi" ! endif -! if !exist($(INCDIR)\hcrypto) - $(MKDIR) $(INCDIR)\hcrypto +! if !exist("$(INCDIR)\hcrypto") + -$(MKDIR) "$(INCDIR)\hcrypto" ! endif -! if !exist($(INCDIR)\kadm5) - $(MKDIR) $(INCDIR)\kadm5 +! if !exist("$(INCDIR)\kadm5") + -$(MKDIR) "$(INCDIR)\kadm5" ! endif -! if !exist($(INCDIR)\krb5) - $(MKDIR) $(INCDIR)\krb5 +! if !exist("$(INCDIR)\krb5") + -$(MKDIR) "$(INCDIR)\krb5" ! endif #---------------------------------------------------------------------- -- 2.11.4.GIT