diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-11-08 12:51:02 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-11-08 12:58:22 +0000 |
commit | 62f3ada9497ac74c9fe7fe8e4207eebd43af0989 (patch) | |
tree | 2816cd803c2cd3e64d0e8a13002ade2ddbdd85ab | |
parent | b8fdcc0b751776818ef2fa56c2cbda199ee59971 (diff) | |
download | ports-62f3ada9497ac74c9fe7fe8e4207eebd43af0989.tar.gz ports-62f3ada9497ac74c9fe7fe8e4207eebd43af0989.zip |
index: keep index file as long as possible
When generating the INDEX file, we are already building it in a
temporary file and swap it last minute. make the index target now
directly depend on the INDEX file generation target.
Turn that target into a PHONY target so the file is always regenerated
when someone calls make index.
PR: 202070
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -64,9 +64,7 @@ PORTSTOP= yes .include <bsd.port.subdir.mk> -index: - @rm -f ${INDEXDIR}/${INDEXFILE} - @cd ${.CURDIR} && ${MAKE} ${INDEXDIR}/${INDEXFILE} +index: ${INDEXDIR}/${INDEXFILE} fetchindex: ${INDEXDIR}/${INDEXFILE}.bz2 @bunzip2 < ${INDEXDIR}/${INDEXFILE}.bz2 > ${INDEXDIR}/${INDEXFILE} && \ @@ -110,7 +108,7 @@ MAKE_INDEX= /usr/libexec/make_index /dev/stdin MAKE_INDEX= perl ${.CURDIR}/Tools/make_index .endif -${INDEXDIR}/${INDEXFILE}: +${INDEXDIR}/${INDEXFILE}: .PHONY @${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ if [ "${INDEX_PRISTINE}" != "" ]; then \ export LOCALBASE=/nonexistentlocal; \ |