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
This commit is contained in:
Jeffrey Altman
2013-09-13 21:37:43 -04:00
parent 75a47ef142
commit 1243f2a0d3

View File

@@ -371,38 +371,38 @@ announce-tools:
prep:: mkdirs prep:: mkdirs
mkdirs: mkdirs:
! if !exist($(OBJ)) ! if !exist("$(OBJ)")
$(MKDIR) $(OBJ) -$(MKDIR) "$(OBJ)"
! endif ! endif
! if !exist($(DESTDIR)) ! if !exist("$(DESTDIR)")
$(MKDIR) $(DESTDIR) -$(MKDIR) "$(DESTDIR)"
! endif ! endif
! if !exist($(LIBDIR)) ! if !exist("$(LIBDIR)")
$(MKDIR) $(LIBDIR) -$(MKDIR) "$(LIBDIR)"
! endif ! endif
! if !exist($(BINDIR)) ! if !exist("$(BINDIR)")
$(MKDIR) $(BINDIR) -$(MKDIR) "$(BINDIR)"
! endif ! endif
! if !exist($(PLUGINDIR)) ! if !exist("$(PLUGINDIR)")
$(MKDIR) $(PLUGINDIR) -$(MKDIR) "$(PLUGINDIR)"
! endif ! endif
! if !exist($(INCDIR)) ! if !exist("$(INCDIR)")
$(MKDIR) $(INCDIR) -$(MKDIR) "$(INCDIR)"
! endif ! endif
! if !exist($(DOCDIR)) ! if !exist("$(DOCDIR)")
$(MKDIR) $(DOCDIR) -$(MKDIR) "$(DOCDIR)"
! endif ! endif
! if !exist($(INCDIR)\gssapi) ! if !exist("$(INCDIR)\gssapi")
$(MKDIR) $(INCDIR)\gssapi -$(MKDIR) "$(INCDIR)\gssapi"
! endif ! endif
! if !exist($(INCDIR)\hcrypto) ! if !exist("$(INCDIR)\hcrypto")
$(MKDIR) $(INCDIR)\hcrypto -$(MKDIR) "$(INCDIR)\hcrypto"
! endif ! endif
! if !exist($(INCDIR)\kadm5) ! if !exist("$(INCDIR)\kadm5")
$(MKDIR) $(INCDIR)\kadm5 -$(MKDIR) "$(INCDIR)\kadm5"
! endif ! endif
! if !exist($(INCDIR)\krb5) ! if !exist("$(INCDIR)\krb5")
$(MKDIR) $(INCDIR)\krb5 -$(MKDIR) "$(INCDIR)\krb5"
! endif ! endif
#---------------------------------------------------------------------- #----------------------------------------------------------------------