Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 18:07:07 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        <arch@FreeBSD.ORG>
Subject:   Re: bsd.lib.mk modifications
Message-ID:  <20020318174634.D670-100000@gamplex.bde.org>
In-Reply-To: <xzpzo16r788.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020318174634.D670-100000>