]> granicus.if.org Git - clang/commitdiff
Fix rare failure of .ver-svn creation, it has a dependency that the output
authorDaniel Dunbar <daniel@zuster.org>
Mon, 1 Jun 2009 22:15:35 +0000 (22:15 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 1 Jun 2009 22:15:35 +0000 (22:15 +0000)
directory exist.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72704 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Makefile

index 5110872862df85e367a749b7ccc6431eec822a8b..d163f0fe9efca45438fee673e738b1a79b76c70a 100644 (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