OSDN Git Service

Make the llvm-config library dependency database depend on all of the libraries.
authorChris Lattner <sabre@nondot.org>
Tue, 6 Jun 2006 17:43:03 +0000 (17:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Jun 2006 17:43:03 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28695 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-config/Makefile

index f07bcc9..413fd0a 100644 (file)
@@ -27,12 +27,10 @@ SUB_CXXFLAGS = ${CPP.BaseFlags} ${CXX.Flags}
 SUB_LDFLAGS = 
 
 FinalLibDeps = $(PROJ_OBJ_DIR)/FinalLibDeps.txt
-LibDeps = $(PROJ_OBJ_DIR)/LibDeps.txt
-GenLibDeps = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl
-# MANUAL USE ONLY!  GenLibDeps.pl is very non-portable, so LibDeps.txt
-# should only be re-built manually.  No other rule in this file should
-# depend on LibDeps.txt.
-$(LibDeps): $(GenLibDeps) $(LibDir)
+LibDeps      = $(PROJ_OBJ_DIR)/LibDeps.txt
+GenLibDeps   = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl
+
+$(LibDeps): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
        $(Echo) "Regenerating LibDeps.txt"
        $(Verb) $(GenLibDeps) -flat $(LibDir) | sort > $(LibDeps)