Fix rare failure of .ver-svn creation, it has a dependency that the output

directory exist.

llvm-svn: 72704
This commit is contained in:
Daniel Dunbar 2009-06-01 22:15:35 +00:00
parent c6d9800564
commit 3acbe4ab58
1 changed files with 1 additions and 1 deletions

View File

@ -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