Re: Strange GNU make behavior with -include ?

2002-12-04 Thread Aymeric Vincent
Hi, Here is a patch (against GNU make 3.79.1, sorry) which fixes Gregoire's problem. However, I'm not used to GNU make, so I certainly overlooked something. The idea is that every RM_DONTCARE file gets its dontcare flag set, even if we already saw that file in some other rule. Then, the

Re: Strange GNU make behavior with -include ?

2002-12-04 Thread Ted Stern
On Wed, 4 Dec 2002, Grégoire Sutre wrote: > > The following makefile goes through: > > --- > all: > > dummy-fake: > > %.depend : %.c > touch $@ > > # Dependencies > > -include fake.depend > --- > localhost $ gmake >

Re: Strange GNU make behavior with -include ?

2002-12-04 Thread Paul D. Smith
%% Ted Stern <[EMAIL PROTECTED]> writes: ts> I'll let Paul explain why, as I would probably make a botch of it. ;-) I think it's a bug :) As Gregoire points out, the fact that a non-intermediate target exists somewhere in the makefile shouldn't cause make's rebuilding of the included makefile

Re: Strange GNU make behavior with -include ?

2002-12-04 Thread Grégoire Sutre
On Tuesday 03 December 2002 21:44, you wrote: > %% Grégoire Sutre <[EMAIL PROTECTED]> writes: > > gs> I was having errors with my Makefiles (for Objective Caml), and I > could gs> pinpoint the problem with the attached very simple Makefile. > > gs> Basically (please see the attached Makefile),

Re: Strange GNU make behavior with -include ?

2002-12-03 Thread Paul D. Smith
%% Grégoire Sutre <[EMAIL PROTECTED]> writes: gs> I was having errors with my Makefiles (for Objective Caml), and I could gs> pinpoint the problem with the attached very simple Makefile. gs> Basically (please see the attached Makefile), I use a: gs> -include fake.depend gs> statement

Strange GNU make behavior with -include ?

2002-11-28 Thread Grégoire Sutre
Hi, I was having errors with my Makefiles (for Objective Caml), and I could pinpoint the problem with the attached very simple Makefile. Basically (please see the attached Makefile), I use a: -include fake.depend statement to include a dependencies makefile 'fake.depend', but this included ma