From owner-freebsd-hackers Sun Dec 3 01:09:25 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA06336 for hackers-outgoing; Sun, 3 Dec 1995 01:09:25 -0800 Received: from cls.net (freeside.cls.de [192.129.50.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id BAA06329 for ; Sun, 3 Dec 1995 01:09:16 -0800 Received: by mail.cls.net (Smail3.1.29.1) from allegro.lemis.de (192.109.197.134) with smtp id ; Sun, 3 Dec 95 09:08 GMT From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Reply-To: grog@lemis.de (Greg Lehey) Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id KAA15634; Sun, 3 Dec 1995 10:09:07 +0100 Message-Id: <199512030909.KAA15634@allegro.lemis.de> Subject: Re: Minor change to make To: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Sun, 3 Dec 1995 09:42:20 +0100 (MET) Cc: hackers@freebsd.org (FreeBSD Hackers) In-Reply-To: from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" at Dec 3, 95 01:31:28 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1651 Sender: owner-hackers@freebsd.org Precedence: bulk =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= writes: > >>> In message <199512021742.RAA14346@exalt.x.org> Kaleb S. KEITHLEY >>> writes: >>> >>> >I want make to silently ignore a failure to find a .include file. The >>> >reason I want this is because in the next release of X imake will generate >>> >Makefiles that can use include files for dependencies if the system's make >>> >supports it. >>> >>> >+ #if WANT_FATAL_INCLUDE_FAILURE >>> > Parse_Error (PARSE_FATAL, "Could not find %s", file); >>> >+ #endif >>> >>> Why not simple change PARSE_FATAL to PARSE_WARNING? >>> I.e. this diagnostic prints (to help detect wrong includes), >>> but it will be non-fatal. > >> Humbug. I don't want a build log filled with (more) nonsense warnings; >> I've already got enough of those as it is. > >> It could emit a warning if make is run with "-d i" or something. Would >> that make everyone happy? > > Default case must produce diagnostic. Our system > Makefiles very depends on .included parts and can acts undetectable > different when some parts are missing by typing error f.e. > > I have nothing against adding commandline option to _disable_ error > or .sinclude as you originally suggest or something like > .IGNORE_INCLUDES: > target (I prefer this solution). I think this is probably the best solution: retain the single .include directive, let it die if the file isn't found, *unless* a '-d i' option or a '.ACCEPT_MISSING_INCLUDES (or whatever) target is supplied (sorry, Andrey, I think the name .IGNORE_INCLUDES is ambiguous). That way the default doesn't change, but the functionality can be enabled at will. Greg