From owner-freebsd-arch Mon Feb 10 14:46:19 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0999937B401 for ; Mon, 10 Feb 2003 14:46:18 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B080F43FCB for ; Mon, 10 Feb 2003 14:46:16 -0800 (PST) (envelope-from arr@watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.6/8.12.5) with ESMTP id h1AMk4P3064085; Mon, 10 Feb 2003 17:46:04 -0500 (EST) (envelope-from arr@watson.org) Received: from localhost (arr@localhost) by fledge.watson.org (8.12.6/8.12.6/Submit) with SMTP id h1AMk3KA064082; Mon, 10 Feb 2003 17:46:03 -0500 (EST) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Mon, 10 Feb 2003 17:46:03 -0500 (EST) From: "Andrew R. Reiter" To: Sam Leffler Cc: Alfred Perlstein , phk@phk.freebsd.dk, Peter Wemm , arch@FreeBSD.ORG Subject: Re: Indiscriminately installing all .h files in /usr/include/* In-Reply-To: <143501c2d154$9c3c70e0$52557f42@errno.com> Message-ID: 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 Mon, 10 Feb 2003, Sam Leffler wrote: :> In message <20030210221501.GF88781@elvis.mu.org>, Alfred Perlstein writes: :> >* Peter Wemm [030210 14:09] wrote: :> >> > :> >> > If there was a way to do it via cpp defines inside the header that :would :> >> > be nice. :> >> :> >> Something like this perhaps? :> >> ^/* EXPORT_HEADER */$ :> > :> >Yes, something like that. I know of one company that brackets the :> >headers with $COMPANY_PRIVATE for stuff that shouldn't be visible in :> >/usr/include. if you wind up with an empty file it isn't even installed. :> :> I would prefer labeling the stuff that should go into /usr/include, :> it shouldn't be the default to export stuff unless you ask for it. : :Sticking this stuff inside include files means modifying imported files. :I'd actually prefer a mechanism like this to lurk in the Makefiles as you :can fully encapsulate requirements like the /usr/include/ is different :than the source directory. I hate adding more files to complicate matters, but it would nice to have some sort of template that could be used to generate where files ended up. Sort of like fsdef (file system definition) file does with fsgen. Not sure if it's exactly what's wanted for here, but it's just what came to mind when this "issue" came up. Cheers, Andrew -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message