[U-Boot] [PATCH] 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 vapier@gentoo.org --- Makefile | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
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

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
participants (2)
-
Mike Frysinger
-
Wolfgang Denk