From 2e5b88e3cbb9438b5b9d3a1dc499b11a144ca7d2 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149643 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index 2d80c43dc86..32a97c646c7 100644 --- a/Makefile.rules +++ b/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)