[llvm-commits] CVS: llvm/tools/llvm-config/Makefile
Reid Spencer
reid at x10sys.com
Mon Dec 11 16:43:53 PST 2006
Changes in directory llvm/tools/llvm-config:
Makefile updated: 1.18 -> 1.19
---
Log message:
Fix PR1040: http://llvm.org/PR1040 :
Don't rebuild llvm-config if none of the library dependencies changed.
---
Diffs of the changes: (+8 -3)
Makefile | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Index: llvm/tools/llvm-config/Makefile
diff -u llvm/tools/llvm-config/Makefile:1.18 llvm/tools/llvm-config/Makefile:1.19
--- llvm/tools/llvm-config/Makefile:1.18 Tue Dec 5 23:39:18 2006
+++ llvm/tools/llvm-config/Makefile Mon Dec 11 18:43:38 2006
@@ -29,11 +29,16 @@
FinalLibDeps = $(PROJ_OBJ_DIR)/FinalLibDeps.txt
LibDeps = $(PROJ_OBJ_DIR)/LibDeps.txt
+LibDepsTemp = $(PROJ_OBJ_DIR)/LibDeps.txt.tmp
GenLibDeps = $(PROJ_SRC_ROOT)/utils/GenLibDeps.pl
-$(LibDeps): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
- $(Echo) "Regenerating LibDeps.txt"
- $(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) > $(LibDeps)
+$(LibDepsTemp): $(GenLibDeps) $(LibDir) $(wildcard $(LibDir)/*.a $(LibDir)/*.o)
+ $(Echo) "Regenerating LibDeps.txt.tmp"
+ $(Verb) $(GenLibDeps) -flat $(LibDir) $(NM_PATH) > $(LibDepsTemp)
+
+$(LibDeps): $(LibDepsTemp)
+ $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \
+ $(EchoCmd) Updated LibDeps.txt because dependencies changes )
# Find all the cyclic dependencies between various LLVM libraries, so we
# don't have to process them at runtime.
More information about the llvm-commits
mailing list