Permalink
Browse files

Fixed the obnoxious problem that caused an entire directory to rebuild

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
  • Loading branch information...
1 parent 7fc9fe3 commit b19e59cb8d48c9bf49473dfed4b8a3a823f96dee @lattner lattner committed Jun 29, 2001
Showing with 6 additions and 6 deletions.
  1. +3 −3 Makefile.common
  2. +3 −3 Makefile.rules
View
@@ -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)
View
@@ -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)

0 comments on commit b19e59c

Please sign in to comment.