From owner-cvs-all Mon Mar 25 0:48:51 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BDDE437B405; Mon, 25 Mar 2002 00:48:47 -0800 (PST) Received: (from sobomax@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2P8mlf77991; Mon, 25 Mar 2002 00:48:47 -0800 (PST) (envelope-from sobomax) Message-Id: <200203250848.g2P8mlf77991@freefall.freebsd.org> From: Maxim Sobolev Date: Mon, 25 Mar 2002 00:48:47 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: ports/Mk bsd.port.mk X-FreeBSD-CVS-Branch: HEAD 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 sobomax 2002/03/25 00:48:47 PST Modified files: Mk bsd.port.mk Log: - Significantly reduce overhead associated with bsd.port.mk by replacing .USE macro, which was invoking separate make(1) process for each of the main targets, with explicit make(1) targets and specifying the dependencies on those targets in normal Makefile way. This gives up to 4x speedup. For the ports relying on the old functionality (i.e. each main target in a separate make(1) process) provide a USE_SUBMAKE knob, which provides old behaviour; - speed-up dependency registration process by the factor of two, which could be a great win especially for things like GNOME and KDE with very long dependency chains; - clean-up internal structure of the file, so that it is easier to understand and extend it when necessary. Inspired by: NetBSD Reviewed by: freebsd-ports@ Tested by: bento Revision Changes Path 1.403 +176 -184 ports/Mk/bsd.port.mk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message