From e30365bfc28be0ab425ab1dc24a6fd726b796abb Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 2 Feb 2012 23:27:34 +0000 Subject: [PATCH] build/make: Ensure make clean removes the LLVMBuild makefile fragment. llvm-svn: 149643 --- llvm/Makefile.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 2d80c43dc86a..32a97c646c71 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -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)