From: Daniel Dunbar Date: Mon, 1 Jun 2009 22:15:35 +0000 (+0000) Subject: Fix rare failure of .ver-svn creation, it has a dependency that the output X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af979374818cb94cfabba8ec95f13ddae58a7ba5;p=clang Fix rare failure of .ver-svn creation, it has a dependency that the output directory exist. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72704 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Makefile b/lib/Driver/Makefile index 5110872862..d163f0fe9e 100644 --- a/lib/Driver/Makefile +++ b/lib/Driver/Makefile @@ -20,7 +20,7 @@ SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion) CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \ -DSVN_REVISION='"$(SVN_REVISION)"' -$(ObjDir)/.ver-svn .ver: +$(ObjDir)/.ver-svn .ver: $(ObjDir)/.dir @if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\ echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn; \ fi