summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-12-29 19:02:25 +0000
committerjoerg <joerg@pkgsrc.org>2006-12-29 19:02:25 +0000
commit0e3d560724de4cb6fabe8a8483e152cb033cd319 (patch)
tree02b0cb269908a9950a8647fd106fbe00f29629ca /Makefile
parent53d4578026b392e825edb6b31df72821a28554ed (diff)
downloadpkgsrc-0e3d560724de4cb6fabe8a8483e152cb033cd319.tar.gz
Change the way INDEX is used by dropping the dependency on PKGDB in
INDEX and calling it directly. As the output is removed anyway, it forced a full rescan on every "make search". Calling "make index" still regenerates it all the time, but the other targets don't. OK wiz@ PRs: 26442, 34207, 35266
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b066b608072..f113d1c0e89 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.77 2006/07/02 12:29:22 rillig Exp $
+# $NetBSD: Makefile,v 1.78 2006/12/29 19:02:25 joerg Exp $
#
# tools used by this Makefile
@@ -138,9 +138,12 @@ ${.CURDIR}/PKGDB:
done
.PHONY: index
-index: ${.CURDIR}/INDEX
+index:
+ @${RM} ${.CURDIR}/INDEX
+ @${MAKE} ${.CURDIR}/INDEX
-${.CURDIR}/INDEX: ${.CURDIR}/PKGDB
+${.CURDIR}/INDEX:
+ @${MAKE} ${.CURDIR}/PKGDB
@${RM} -f ${.CURDIR}/INDEX
@${AWK} -f ./mk/scripts/genindex.awk PKGSRCDIR=${.CURDIR} SORT=${SORT} ${.CURDIR}/PKGDB
@${RM} -f ${.CURDIR}/PKGDB