diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-06-10 07:30:19 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-06-10 07:30:19 +0000 |
commit | 22cbe54b9abcdbf749c3480a40f5a21daa03a05d (patch) | |
tree | 8490ea6b208576582001969c79ba9e7700d59889 /Makefile | |
parent | 9abd9a00856e4204e2d017467bba88f712806d6c (diff) | |
download | ports-22cbe54b9abcdbf749c3480a40f5a21daa03a05d.tar.gz ports-22cbe54b9abcdbf749c3480a40f5a21daa03a05d.zip |
Notes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -75,8 +75,16 @@ fetchindex: INDEX_JOBS?= 2 +.if !defined(INDEX_VERBOSE) +INDEX_ECHO_MSG= echo > /dev/null +INDEX_ECHO_1ST= echo -n +.else +INDEX_ECHO_MSG= echo 1>&2 +INDEX_ECHO_1ST= echo +.endif + ${.CURDIR}/${INDEXFILE}: - @echo -n "Generating ${INDEXFILE} - please wait.."; \ + @${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ if [ "${INDEX_PRISTINE}" != "" ]; then \ export LOCALBASE=/nonexistentlocal; \ export X11BASE=/nonexistentx; \ @@ -84,7 +92,7 @@ ${.CURDIR}/${INDEXFILE}: tmpdir=`/usr/bin/mktemp -d -t index` || exit 1; \ trap "rm -rf $${tmpdir}; exit 1" 1 2 3 5 10 13 15; \ ( cd ${.CURDIR} && make -j${INDEX_JOBS} INDEX_TMPDIR=$${tmpdir} BUILDING_INDEX=1 \ - ECHO_MSG="echo > /dev/null" describe ) || \ + ECHO_MSG="${INDEX_ECHO_MSG}" describe ) || \ (rm -rf $${tmpdir} ; \ if [ "${INDEX_QUIET}" = "" ]; then \ echo; \ |