diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-24 18:37:55 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 16:53:23 +0200 |
commit | afd077bd14c2b198ff0862c29b621667c55db11d (patch) | |
tree | 5d7d6d5ccbdd5a3249f0ee0a86159e136e6c463d /Makefile | |
parent | f6f7395eb36a5d4ac7e3b088f65cda42629d1d79 (diff) | |
download | u-boot-imx-afd077bd14c2b198ff0862c29b621667c55db11d.zip u-boot-imx-afd077bd14c2b198ff0862c29b621667c55db11d.tar.gz u-boot-imx-afd077bd14c2b198ff0862c29b621667c55db11d.tar.bz2 |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |