]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Only run make maintainer-clean etc, if the Makefile actually exists.
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Wed, 24 Mar 2010 16:43:52 +0000 (12:43 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Wed, 24 Mar 2010 16:43:52 +0000 (12:43 -0400)
SVN-Revision: 2052

build/clean.sh

index 5b4c5624a60d4f92fc66d573fc673137c44b2690..dc14267ce589e1f1683f5cc806e559eeb7cb0692 100755 (executable)
@@ -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`