From: Mike Frysinger Date: Fri, 24 Jun 2011 18:37:55 +0000 (+0000) Subject: simplify clobber behavior with out-of-tree builds X-Git-Tag: v2011.09-rc1~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afd077bd14c2b198ff0862c29b621667c55db11d;p=platform%2Fkernel%2Fu-boot.git simplify clobber behavior with out-of-tree builds The targets/prerequisites are the same here; the rules only differ in the recipes. So move the if logic protection to the recipe part so we can keep the rest the same. Signed-off-by: Mike Frysinger --- diff --git a/Makefile b/Makefile index 0707036..869755a 100644 --- a/Makefile +++ b/Makefile @@ -1105,12 +1105,9 @@ clobber: clean @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f @[ ! -d $(obj)mmc_spl ] || find $(obj)mmc_spl -name "*" -type l -print | xargs rm -f -ifeq ($(OBJTREE),$(SRCTREE)) -mrproper \ -distclean: clobber unconfig -else mrproper \ distclean: clobber unconfig +ifneq ($(OBJTREE),$(SRCTREE)) rm -rf $(obj)* endif