diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2006-01-28 02:11:35 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2006-01-28 02:11:35 +0000 |
commit | b09666fc1e84f3c48ffd364896f780150a2cf5a9 (patch) | |
tree | c998550baecf34be07870269231bbbcbca9ae8c8 /Mk/bsd.port.subdir.mk | |
parent | 59da8c223b9e2c7be998c21dd9ea8fcbb6977dc7 (diff) |
Notes
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r-- | Mk/bsd.port.subdir.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index 6f0a5b884839..82ba7d542b74 100644 --- a/Mk/bsd.port.subdir.mk +++ b/Mk/bsd.port.subdir.mk @@ -240,7 +240,7 @@ describe: .if defined(PORTSTOP) readmes: readme ${SUBDIR:S/^/_/:S/$/.readmes/} @${ECHO_MSG} "===> Creating README.html for all ports" - @perl ${PORTSDIR}/Tools/make_readmes < ${PORTSDIR}/${INDEXFILE} + @perl ${PORTSDIR}/Tools/make_readmes < ${INDEXDIR}/${INDEXFILE} .else readmes: readme .endif @@ -265,6 +265,7 @@ README= ${TEMPLATES}/README.category .endif COMMENTFILE?= ${.CURDIR}/pkg/COMMENT DESCR?= ${.CURDIR}/pkg/DESCR +INDEXDIR?= ${PORTSDIR} .if ${OSVERSION} >= 500036 INDEXFILE?= INDEX-${OSVERSION:C/([0-9]).*/\1/} .else @@ -333,7 +334,7 @@ PORTSEARCH_IGNORECASE?=1 _PORTSEARCH= \ here=${.CURDIR}; \ - if [ ! -r ${PORTSDIR}/${INDEXFILE} ] ; then \ + if [ ! -r ${INDEXDIR}/${INDEXFILE} ] ; then \ echo "The ${.TARGET} target requires ${INDEXFILE}. Please run make index or make fetchindex."; \ else \ cd ${PORTSDIR}; \ @@ -441,7 +442,8 @@ _PORTSEARCH= \ if (i in disp) \ printf("%s:\t%s\n", names[i], $$i); \ print(""); \ - }' ${PORTSDIR}/${INDEXFILE} ; fi + }' ${INDEXDIR}/${INDEXFILE}; \ + fi search: @${_PORTSEARCH} |