From: "Jan Beulich" Subject: Re: [PATCH v2] build: fix clean to remove all .o and .d files Date: Wed, 02 Dec 2015 08:36:04 -0700 Message-ID: <565F1DF402000078000BB554@prv-mh.provo.novell.com> References: <1449070170-78927-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: In-Reply-To: <1449070170-78927-1-git-send-email-jonathan.creekmore@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jonathan Creekmore Cc: Keir Fraser , Tim Deegan , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 02.12.15 at 16:29, wrote: > --- a/xen/Makefile > +++ b/xen/Makefile > @@ -91,7 +91,8 @@ _clean: delete-unfresh-files > $(MAKE) -f $(BASEDIR)/Rules.mk -C xsm clean > $(MAKE) -f $(BASEDIR)/Rules.mk -C crypto clean > $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean > - rm -f include/asm *.o $(TARGET) $(TARGET).gz $(TARGET).efi $(TARGET)-syms *~ core $(DEPS) > + find . \( -name "*.o" -o -name "*.d" \) -exec rm -f {} \; If you really meant *.d, then *.[od] would have done. But in fact I think we want to limit this to ".*.d". Which I could fix up while committing, but then I'm not sure ... > --- 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 *~ core ... this is a good idea, as it's not clear to me whether "clean" actually works when invoked in sub-trees of xen/. Jan