mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
f6f7395eb3
commit
afd077bd14
1 changed files with 1 additions and 4 deletions
5
Makefile
5
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue