Fixed the obnoxious problem that caused an entire directory to rebuild
authorChris Lattner <sabre@nondot.org>
Fri, 29 Jun 2001 05:20:16 +0000 (05:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Jun 2001 05:20:16 +0000 (05:20 +0000)
even if you only change one .cpp file. Yaay

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

Makefile.common
Makefile.rules

index b28b4997f6118263bf135e95bfcc939cf13273fd..5755ece34d9dee840ced5b328466adf78fae5df1 100644 (file)
@@ -20,7 +20,7 @@
 #    in the current directory.
 #
 
-# Default Rule:
+# Default Rule:  Make sure it's also a :: rule
 all ::
 
 # Default for install is to at least build everything...
@@ -115,11 +115,11 @@ all:: $(LIBNAME_G)
 #$(LIBNAME_O)
 # TODO: Enable optimized builds
 
-$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir
+$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir Depend/.dir
        @echo ======= Linking $(LIBRARYNAME) release library =======
        $(MakeSOO) -o $@ $(ObjectsO) $(LibSubDirs) $(LibLinkOpts)
 
-$(LIBNAME_G): $(ObjectsG) $(LibSubDirs) Debug/.dir
+$(LIBNAME_G): $(ObjectsG) $(LibSubDirs) Debug/.dir Depend/.dir
        @echo ======= Linking $(LIBRARYNAME) debug library =======
        $(MakeSOG) -o $@ $(ObjectsG) $(LibSubDirs) $(LibLinkOpts)
 
index b28b4997f6118263bf135e95bfcc939cf13273fd..5755ece34d9dee840ced5b328466adf78fae5df1 100644 (file)
@@ -20,7 +20,7 @@
 #    in the current directory.
 #
 
-# Default Rule:
+# Default Rule:  Make sure it's also a :: rule
 all ::
 
 # Default for install is to at least build everything...
@@ -115,11 +115,11 @@ all:: $(LIBNAME_G)
 #$(LIBNAME_O)
 # TODO: Enable optimized builds
 
-$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir
+$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir Depend/.dir
        @echo ======= Linking $(LIBRARYNAME) release library =======
        $(MakeSOO) -o $@ $(ObjectsO) $(LibSubDirs) $(LibLinkOpts)
 
-$(LIBNAME_G): $(ObjectsG) $(LibSubDirs) Debug/.dir
+$(LIBNAME_G): $(ObjectsG) $(LibSubDirs) Debug/.dir Depend/.dir
        @echo ======= Linking $(LIBRARYNAME) debug library =======
        $(MakeSOG) -o $@ $(ObjectsG) $(LibSubDirs) $(LibLinkOpts)