From owner-freebsd-ports@FreeBSD.ORG Fri Nov 26 07:36:22 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CFF216A4CE for ; Fri, 26 Nov 2004 07:36:22 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CA0143D54 for ; Fri, 26 Nov 2004 07:36:19 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 61725 invoked by uid 0); 26 Nov 2004 07:30:18 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.98.7) by mail.freebsd.org.cn with SMTP; 26 Nov 2004 07:30:18 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id F3DFD130FE7 for ; Fri, 26 Nov 2004 15:36:15 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02901-10 for ; Fri, 26 Nov 2004 15:36:06 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 98ADF130EFA; Fri, 26 Nov 2004 15:36:05 +0800 (CST) Date: Fri, 26 Nov 2004 15:36:05 +0800 From: Xin LI To: freebsd-ports@FreeBSD.org Message-ID: <20041126073605.GA2220@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.3-delphij FreeBSD 5.3-delphij #11: Tue Oct 26 14:12:03 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net Subject: Prevent ``make search'' from being building index? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2004 07:36:22 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear folks, I think it might be reasonable to use fetchindex rather than to build a new INDEX file when using ``make search''. A ugly hack for this is as follows: --- Makefile.old Wed Nov 17 18:44:45 2004 +++ Makefile Fri Nov 26 19:27:06 2004 @@ -84,7 +84,14 @@ INDEX_ECHO_1ST=3D echo .endif =20 -${.CURDIR}/${INDEXFILE}: +.if ${.TARGETS} =3D=3D search +GETINDEX=3D fetchindex +.else +.undef FETCHINDEX +.endif + +${.CURDIR}/${INDEXFILE}: ${GETINDEX} +.if !defined(GETINDEX) @${INDEX_ECHO_1ST} "Generating ${INDEXFILE} - please wait.."; \ if [ "${INDEX_PRISTINE}" !=3D "" ]; then \ export LOCALBASE=3D/nonexistentlocal; \ @@ -127,6 +134,7 @@ fi; \ rm -rf $${tmpdir}; \ echo " Done." +.endif =20 print-index: ${.CURDIR}/${INDEXFILE} @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\= t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\= t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < = ${.CURDIR}/${INDEXFILE} Cheers, --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBptzl/cVsHxFZiIoRAky7AJ9Rz6vsgmOkoA4puOQgiLILGl3brACdH2WF jk20Wfy8Xx1M0ur/pfrBXB0= =BfY0 -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--