]> www.infradead.org Git - mtd-utils.git/commit
Makefile: fix "make clean" for cross-compile
authorBrian Norris <computersforpeace@gmail.com>
Thu, 7 Jul 2011 20:44:26 +0000 (13:44 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 20 Jul 2011 05:26:25 +0000 (08:26 +0300)
commitddea54a714039e6efe57b51b78a63723d9eb3093
treef6cd18500c3a3a8a28df3e29c52157e9c503669a
parent9a38f97d1cebcda5bb49032b1079d383ff34de3d
Makefile: fix "make clean" for cross-compile

When cross-compiling (make CROSS=mipsel-linux-), I get this error:

rm -rf /home/norris/git/mtd-utils/mipsel-linux
find /home/norris/git/mtd-utils/mipsel-linux/ -xdev \
'(' -name '*.[ao]' -o -name '.*.c.dep' ')' \
-exec rm -f {} +
find: `/home/norris/git/mtd-utils/mipsel-linux/': No such file or directory
make: *** [clean] Error 1

Now, for cross-compiling, we've already deleted the $(BUILDDIR), so we
should check this before cleaning individual objects with "find."

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Makefile