[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including files

From: bhaskar . g
Subject: Re: including files
Date: Mon, 14 Jul 2003 09:53:49 +0530

Hi Paul,

Thanks for the answer. I have the following problem.

I am generating a *.d file for every *.c file.

I have a rule to generate the *.d file as mentioned in the Manual.
Then in the *.d file i am generating the information as the following

*.d *.o: *.c *.h


-include dependency.d

dependency.d : src/test.c

in the dependency.d file i have the following

dependency.d test.o: src/test.c inc/test.h

Now while using the --new-file option. The dependency generation keeps looping.
Is this a known bug.

Making dependencies for test.c
Making dependencies for test.c
Making dependencies for test.c
Making dependencies for test.c
Making dependencies for test.c


Bhaskar G/BTC/SC/address@hidden                                                
  Re: including files                                                     
               "Paul D. Smith" <address@hidden>                       
               Sent by:                                                         
               07/11/2003 09:15 PM                                              
               Please respond to "Paul D. Smith"                                

%% address@hidden writes:

  bg> I am using Make 3.79.1 on Window NT (Cygwin) and Make 3.80 on HPUX.

  bg> The question is

  bg> I am generating a dependency makefile during my makefile.

  bg> -include dependency.d

  bg> I am generating this file after the include.

  bg> Does make include the information in the dependency file after it
  bg> is generated.

Sort of.

After make reads all the makefiles, it tries to regenerate any that seem
out of date.

After checking all the makefiles, if any of them have actually been
regenerated, make will re-run itself from scratch.  So, the next time it
runs it will read the new content.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Help-make mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]