From owner-freebsd-arch Mon Feb 10 14:34:51 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 A3A3937B401 for ; Mon, 10 Feb 2003 14:34:50 -0800 (PST) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 400A343FAF for ; Mon, 10 Feb 2003 14:34:45 -0800 (PST) (envelope-from sam@errno.com) Received: from melange (melange.errno.com [66.127.85.82]) (authenticated bits=0) by ebb.errno.com (8.12.5/8.12.1) with ESMTP id h1AMYfnN093202 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 10 Feb 2003 14:34:44 -0800 (PST)?g (envelope-from sam@errno.com)œ X-Authentication-Warning: ebb.errno.com: Host melange.errno.com [66.127.85.82] claimed to be melange Message-ID: <143501c2d154$9c3c70e0$52557f42@errno.com> From: "Sam Leffler" To: "Alfred Perlstein" , Cc: "Peter Wemm" , References: <43624.1044915959@critter.freebsd.dk> Subject: Re: Indiscriminately installing all .h files in /usr/include/* Date: Mon, 10 Feb 2003 14:34:11 -0800 Organization: Errno Consulting MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 > 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. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message