diff mbox

[U-Boot] simplify clobber behavior with out-of-tree builds

Message ID 1308976675-28145-1-git-send-email-vapier@gentoo.org
State Accepted
Delegated to: Wolfgang Denk
Headers show

Commit Message

Mike Frysinger June 25, 2011, 4:37 a.m. UTC
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 <vapier@gentoo.org>
---
 Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

Comments

Wolfgang Denk July 26, 2011, 2:53 p.m. UTC | #1
Dear Mike Frysinger,

In message <1308976675-28145-1-git-send-email-vapier@gentoo.org> you wrote:
> 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 <vapier@gentoo.org>
> ---
>  Makefile |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/Makefile b/Makefile
index a368f56..43a9145 100644
--- a/Makefile
+++ b/Makefile
@@ -1158,12 +1158,9 @@  clobber:	clean
 	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
 	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -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