From: Joerg Sonnenberger Date: Wed, 24 Mar 2010 16:43:52 +0000 (-0400) Subject: Only run make maintainer-clean etc, if the Makefile actually exists. X-Git-Tag: v3.0.0a~1140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecefaacc8d1c963403914b66e7dc3f2adb9dd206;p=thirdparty%2Flibarchive.git Only run make maintainer-clean etc, if the Makefile actually exists. SVN-Revision: 2052 --- diff --git a/build/clean.sh b/build/clean.sh index 5b4c5624a..dc14267ce 100755 --- a/build/clean.sh +++ b/build/clean.sh @@ -10,7 +10,9 @@ fi # lot. If that fails, try plain 'clean' in case we're using the cmake # or other makefile. But don't worry if we can't... # -make maintainer-clean || make clean || true +if [ -e Makefile ]; then + make maintainer-clean || make clean || true +fi # If we're on BSD, blow away the build dir under /usr/obj rm -rf /usr/obj`pwd`