[llvm-commits] [llvm] r57026 - /llvm/trunk/Makefile.rules
Daniel Dunbar
daniel at zuster.org
Fri Oct 3 12:11:21 PDT 2008
Author: ddunbar
Date: Fri Oct 3 14:11:19 2008
New Revision: 57026
URL: http://llvm.org/viewvc/llvm-project?rev=57026&view=rev
Log:
Add IS_CLEANING_TARGET Makefile variable.
- Fixes bug in dependency inclusions where make with unspecified
target wouldn't include dependency files, eek!
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=57026&r1=57025&r2=57026&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Fri Oct 3 14:11:19 2008
@@ -195,6 +195,11 @@
# VARIABLES: Set up various variables based on configuration data
###############################################################################
+# Variable for if this make is for a "cleaning" target
+ifneq ($(strip $(filter clean clean-local dist-clean,$(MAKECMDGOALS))),)
+ IS_CLEANING_TARGET=1
+endif
+
#--------------------------------------------------------------------
# Variables derived from configuration we are building
#--------------------------------------------------------------------
@@ -739,7 +744,7 @@
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
endif
-ifeq ($(strip $(filter clean clean-local dist-clean,$(MAKECMDGOALS))),)
+ifndef IS_CLEANING_TARGET
ifdef LINK_COMPONENTS
# If LLVM_CONFIG doesn't exist, build it. This can happen if you do a make
@@ -1507,7 +1512,7 @@
ifndef DISABLE_AUTO_DEPENDENCIES
# If its not one of the cleaning targets
-ifneq ($(strip $(filter-out clean clean-local dist-clean,$(MAKECMDGOALS))),)
+ifndef IS_CLEANING_TARGET
# Get the list of dependency files
DependFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))
More information about the llvm-commits
mailing list