diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-03-09 09:49:09 -0800 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-03-12 15:07:27 +0200 |
commit | 424050cf57f797d635059b18ba6b8591c3fc126f (patch) | |
tree | 4dcfffd4f86b3025237126bdd2399455d9420be7 /include/mtd | |
parent | c36e0067ffdae9ca83abae89f2d22dc9013d9734 (diff) |
Makefile: fix "make clean" for old GNU find
findutils v4.1.x does not have the `-exec CMD {} +' syntax. We can just as
easily use the `-exec CMD {} \;' syntax. However, it will launch a lot more
`rm' processes, so we only use it if the first form fails with an error.
This isn't a perfect solution (`find -exec +' can fail for other reasons)
but it works well enough.
This problem manifests itself in RHEL 4, findutils 4.1.20:
$ make clean
rm -f /XXX/mtd-utils/*.o /XXX/mtd-utils/ftl_format ...
find: missing argument to `-exec'
make: *** [clean] Error 1
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/mtd')
0 files changed, 0 insertions, 0 deletions