From owner-cvs-all Sat Oct 27 21:27:12 2001 Delivered-To: cvs-all@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id 67A8437B403; Sat, 27 Oct 2001 21:27:04 -0700 (PDT) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.6/8.11.5) with ESMTP id f9S4Ola94466; Sun, 28 Oct 2001 00:24:48 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200110280424.f9S4Ola94466@aldan.algebra.com> Date: Sun, 28 Oct 2001 00:24:44 -0400 (EDT) From: Mikhail Teterin Reply-To: ports@FreeBSD.org Subject: parsing a port's Makefile (Re: cvs commit: ports/graphics/gd Makefile pkg-plist) To: will@physics.purdue.edu Cc: roam@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, ports@FreeBSD.org In-Reply-To: <20011027184442.V25747@squall.waterspout.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Reply-To: set to ports] On 27 Oct, Will Andrews wrote: > No. make(1) parses a port's Makefile only once per invocation. The > same goes for bsd.port.mk; if something .include bsd.port.mk then it > will be parsed there. Not again. There are different invocations. Typical ones, like ``make configure'' take MUCH more. :-( Here is my test. Add a line D!= echo one more >> ${.CURDIR}/count into a Makefile of any port. Then do, say, ``make configure'' of that port. Then -- wc -l count 23 count 23 times just to do ``make configure'' !! There are numerous ``cd ${.CURDIR} && ${MAKE} '' in the bsd.port.mk... Even on my PII-300, there is a noticable pausing even for a simple time make -V MASTER_SITES 0.118u 0.125s 0:00.23 100.0% 274+304k 0+0io 0pf+0w As was noted before, the style of bsd.port.mk uses make(1) as a script processor, for which it is poorly suited, BTW, since it was never intended for it :( This is, probably, something we'll just have to live with for a while, but we need to know about it... -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message