All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] build: fix clean rule to cover objects in unvisited subdirs
@ 2015-11-30 17:29 Jonathan Creekmore
  2015-12-01 12:41 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Creekmore @ 2015-11-30 17:29 UTC (permalink / raw)
  To: xen-devel
  Cc: Keir Fraser, Ian Campbell, Jonathan Creekmore, Ian Jackson,
	Tim Deegan, Jan Beulich

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 <ian.campbell@citrix.com>
CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Keir Fraser <keir@xen.org>
CC: Tim Deegan <tim@xen.org>
Signed-off-by: Jonathan Creekmore <jonathan.creekmore@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-02  9:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30 17:29 [PATCH] build: fix clean rule to cover objects in unvisited subdirs Jonathan Creekmore
2015-12-01 12:41 ` Jan Beulich
2015-12-01 15:52   ` Jonathan Creekmore
2015-12-01 16:07     ` Jan Beulich
2015-12-01 16:34       ` Jonathan Creekmore
2015-12-01 16:44         ` Jan Beulich
2015-12-02  9:22           ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.