diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2011-05-04 22:33:13 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2011-05-04 22:33:13 +0000 |
commit | c406a95c53be1709ff514cf7bc6de9de5c057057 (patch) | |
tree | faf7a68307086a82d03faf511024bed2ea1b9a79 /Makefile | |
parent | dd741f84d0f826a69db5d81fd036fd2f22a05fb0 (diff) | |
download | ports-c406a95c53be1709ff514cf7bc6de9de5c057057.tar.gz ports-c406a95c53be1709ff514cf7bc6de9de5c057057.zip |
Notes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -101,6 +101,10 @@ INDEX_SHELL= /rescue/sh INDEX_SHELL= /bin/sh .endif +.if !defined(INDEX_PORTS) +INDEX_PORTS=. +.endif + ${INDEXDIR}/${INDEXFILE}: @${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ if [ "${INDEX_PRISTINE}" != "" ]; then \ @@ -108,9 +112,9 @@ ${INDEXDIR}/${INDEXFILE}: fi; \ 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 \ + ( cd ${.CURDIR}; for i in ${INDEX_PORTS}; do (cd $${i} && make -j${INDEX_JOBS} INDEX_TMPDIR=$${tmpdir} BUILDING_INDEX=1 \ __MAKE_SHELL=${INDEX_SHELL} \ - ECHO_MSG="${INDEX_ECHO_MSG}" describe ) || \ + ECHO_MSG="${INDEX_ECHO_MSG}" describe); done ) || \ (rm -rf $${tmpdir} ; \ if [ "${INDEX_QUIET}" = "" ]; then \ echo; \ |