]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Allow test suite to override make program via MAKE environment variable
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 8 May 2014 13:28:08 +0000 (15:28 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 8 May 2014 13:28:08 +0000 (15:28 +0200)
test-suite/buildtest.sh

index 64cee2670772c567c909826caa8292817260fa29..7622207695fb92ed062c543324d7695984408f42 100755 (executable)
@@ -42,7 +42,7 @@ fi
 # but skip if we have no files to remove.
 FILECOUNT=`ls -1 | grep -c .`
 if test "${FILECOUNT}" != "0" ; then
-  make -k distclean || echo "distclean done. errors are unwanted but okay here."
+  ${MAKE:-make} -k distclean || echo "distclean done. errors are unwanted but okay here."
   ls -la .
   rm -fr ./src/fs/aufs/.deps src/fs/diskd/.deps
 fi
@@ -55,7 +55,7 @@ fi
 # eval is need to correctly handle quoted arguments
        eval "$base/../configure ${DISTCHECK_CONFIGURE_FLAGS} ${configcache}" \
                2>&1 && \
-       make ${pjobs} ${MAKETEST} 2>&1
+       ${MAKE:-make} ${pjobs} ${MAKETEST} 2>&1
 
 # Remember and then explicitly return the result of the last command
 # to the script caller. Probably not needed on most or all platforms.