Make the cleaning of BUILT_SOURCES be a "clean-all" target item, not a
authorReid Spencer <rspencer@reidspencer.com>
Wed, 7 Feb 2007 19:13:19 +0000 (19:13 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 7 Feb 2007 19:13:19 +0000 (19:13 +0000)
"clean" target item. This gets around having the built sources disappear
when only one build mode wants to be cleaned. With the "clean-all" target,
all build modes are cleaned so it also makes sense to clean out the built
sources at that point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34003 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index e06ae184c93e854774b36a56b2486e1565406873..105ab839f7a25613f1d9ba78d9190bb7eb8a2548 100644 (file)
@@ -85,7 +85,7 @@ preconditions: $(PreConditions)
 #------------------------------------------------------------------------
 $(filter-out clean clean-local,$(UserTargets)):: $(BUILT_SOURCES)
 
-clean-local::
+clean-all-local::
 ifneq ($(strip $(BUILT_SOURCES)),)
        -$(Verb) $(RM) -f $(BUILT_SOURCES)
 endif