From ecefaacc8d1c963403914b66e7dc3f2adb9dd206 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Wed, 24 Mar 2010 12:43:52 -0400 Subject: [PATCH] Only run make maintainer-clean etc, if the Makefile actually exists. SVN-Revision: 2052 --- build/clean.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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` -- 2.47.3