From owner-freebsd-arch Sun Mar 17 23: 7:16 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id BADC637B400 for ; Sun, 17 Mar 2002 23:07:12 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA27356; Mon, 18 Mar 2002 18:07:06 +1100 Date: Mon, 18 Mar 2002 18:07:07 +1100 (EST) From: Bruce Evans X-X-Sender: To: Dag-Erling Smorgrav Cc: Subject: Re: bsd.lib.mk modifications In-Reply-To: Message-ID: <20020318174634.D670-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 18 Mar 2002, Dag-Erling Smorgrav wrote: > The attached patch changes the following in bsd.lib.mk: > > - add an INCSUBDIR variable so that libraries that install their > headers in a subdirectory of /usr/include don't have to override > the beforeinstall target. Why not just set INCDIR? I think the most useful meaning for INCDIR is "the (single) directory in which the current set of includes is installed", not "the root of the include tree (default /usr/include)" although the comment in bsd.own.mk suggests the latter meaning. > - make ${INCS} a prerequisite of _includeinstall so generated headers > will be built in time for beforeinstall (again, to avoid overriding > beforeinstall). This may result in the headers being built at install time. Not good. libss (when it existed) showed how to do this better. It had a `hdrs' target which built the headers. src/Makefile.inc1 invoked hdrs before beforeinstall to get the headers built before installing them. > - install static libraries with -C, like headers, since it is common > for programs and libraries to depend on them. OK. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message