build/make: Ensure make clean removes the LLVMBuild makefile fragment.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 2 Feb 2012 23:27:34 +0000 (23:27 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 2 Feb 2012 23:27:34 +0000 (23:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149643 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 2d80c43dc86af3d66f9ad67f28fbf8021806a634..32a97c646c717dbbc3b350cf690f7baeb1c8415e 100644 (file)
@@ -116,6 +116,10 @@ $(LLVMConfigLibraryDependenciesInc): $(LLVMBuildMakeFrag)
 # building from a subdirectory, but that is always somewhat unreliable.
 ifeq ($(LEVEL),.)
 LLVMBUILD_INCLUDE_DEPENDENCIES := 1
+
+# Clean the generated makefile fragment at the top-level.
+clean-local::
+       -$(Verb) $(RM) -f $(LLVMBuildMakeFrag)
 endif
 -include $(LLVMBuildMakeFrag)