summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-04 04:50:10 +0000
committerChris Lattner <sabre@nondot.org>2006-09-04 04:50:10 +0000
commit9a4a92e829e8a4c9f06811cb422ec56e8669fdcb (patch)
tree1bd335d4d1478343b59a948cd7352d9af28a3f63
parent36bf108d71710d8d7c0a765e175a1a62ce9d4190 (diff)
downloadbcm5719-llvm-9a4a92e829e8a4c9f06811cb422ec56e8669fdcb.tar.gz
bcm5719-llvm-9a4a92e829e8a4c9f06811cb422ec56e8669fdcb.zip
Make LINK_COMPONENTS interact well with make clean
llvm-svn: 30086
-rw-r--r--llvm/Makefile.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index ae1adc3663e..b48b906cb77 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -707,10 +707,12 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
endif
+ifneq ($(strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS)))),)
ifdef LINK_COMPONENTS
ProjLibsOptions := $(shell $(LLVM_CONFIG) --libs $(LINK_COMPONENTS))
ProjLibsPaths := $(shell $(LLVM_CONFIG) --libfiles $(LINK_COMPONENTS))
endif
+endif
###############################################################################
# Library Build Rules: Four ways to build a library
@@ -1415,7 +1417,7 @@ CTAGS:
ifndef DISABLE_AUTO_DEPENDENCIES
# If its not one of the cleaning targets
-ifneq ($strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS))),)
+ifneq ($(strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS)))),)
# Get the list of dependency files
DependFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))
OpenPOWER on IntegriCloud