From: Jonathan Creekmore Subject: [PATCH] build: fix clean rule to cover objects in unvisited subdirs Date: Mon, 30 Nov 2015 11:29:40 -0600 Message-ID: <1448904580-72413-1-git-send-email-jonathan.creekmore@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Keir Fraser , Ian Campbell , Jonathan Creekmore , Ian Jackson , Tim Deegan , Jan Beulich List-Id: xen-devel@lists.xenproject.org In commit 8b6ef9c152edceabecc7f90c811cd538a7b7a110, several files in xen/common/compat were changed to be built using the Makefile in xen/common, by appending the compat prefix to the object files. Additionally, the xen/common/compat directory was removed from the subdirs-y variable, so it is no longer visited by the clean rule. This resulted in some object files being built by inclusion into obj-y, but not cleaned because they lived in a directory that was unvisited by the clean rules. Appending obj-y to the clean rule causes object files of this type to be cleaned up along with files in the visited directory. CC: Ian Campbell CC: Ian Jackson CC: Jan Beulich CC: Keir Fraser CC: Tim Deegan Signed-off-by: Jonathan Creekmore --- xen/Rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/Rules.mk b/xen/Rules.mk index 02db110..539722f 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -173,7 +173,7 @@ FORCE: .PHONY: clean clean:: $(addprefix _clean_, $(subdir-all)) - rm -f *.o *~ core $(DEPS) + rm -f *.o *~ core $(DEPS) $(obj-y) _clean_%/: FORCE $(MAKE) -f $(BASEDIR)/Rules.mk -C $* clean -- 2.6.2