From owner-freebsd-hackers Mon Dec 4 12:28:31 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA27557 for hackers-outgoing; Mon, 4 Dec 1995 12:28:31 -0800 Received: from expo.x.org (expo.x.org [198.112.45.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA27552 for ; Mon, 4 Dec 1995 12:28:26 -0800 Received: from exalt.x.org by expo.x.org id AA21302; Mon, 4 Dec 95 14:35:50 -0500 Received: from localhost by exalt.x.org id TAA18604; Mon, 4 Dec 1995 19:34:16 GMT Message-Id: <199512041934.TAA18604@exalt.x.org> To: hackers@freefall.FreeBSD.org Subject: Re: Minor change to make In-Reply-To: Your message of Mon, 04 Dec 1995 10:37:03 EDT. <199512041837.KAA10163@austin.polstra.com> Organization: X Consortium Date: Mon, 04 Dec 1995 14:34:15 EDT From: "Kaleb S. KEITHLEY" Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > In article <199512021742.RAA14346@exalt.x.org> kaleb@x.org 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. > > ... which led to lots of ideas for controlling whether a diagnostic is > issued. > > Hey, people! Why not change it to use make's established syntax for > ignoring errors? > > -.include filename > > should ignore the error, but > > .include filename > > should not. > > Don't invent a new kind of wheel if you don't need to. Yup, that's how gnumake does it too, i.e. `include file' emits a warning and try to build `file' if it does not exist, `-include file' is silent and won't try to build `file' if it doesn't exist. But I found another way to skin the cat. I only want dependencies and FreeBSD make's treatment of the `.depend' file in the cwd is exactly what I want. To bad I missed this detail right at the top of the make man page or I could have saved myself some effort. -- Kaleb