summaryrefslogtreecommitdiff
path: root/Makefile.rules
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
commit55e6c4ab94e5797841ee14523795169d8d3c1b80 (patch)
tree22fc12230347666ad6eee23079649248e67411d5 /Makefile.rules
parent9bf8ea26a9b9571cab76819cc69f3bfa857610a8 (diff)
downloadllvm-55e6c4ab94e5797841ee14523795169d8d3c1b80.tar.gz
llvm-55e6c4ab94e5797841ee14523795169d8d3c1b80.tar.bz2
llvm-55e6c4ab94e5797841ee14523795169d8d3c1b80.tar.xz
Make LINK_COMPONENTS interact well with make clean
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index ae1adc3663..b48b906cb7 100644
--- a/Makefile.rules
+++ b/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)))