help-make
[Top][All Lists]
Advanced

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

Re: Chicken-n-the-egg: regen .d file w/ missing header


From: Greg Chicares
Subject: Re: Chicken-n-the-egg: regen .d file w/ missing header
Date: Sat, 18 Mar 2006 04:22:11 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

On 2006-3-18 3:50 UTC, Matt England wrote:
> 
> I automatically generate header-file dependency makefiles (aka ".d"
> files) as per:
> <http://www.gnu.org/software/make/manual/html_chapter/make_4.html#SEC51>
> 
> However, if I rename the header file, and even change this name
> reference in the .cpp file which includes said header file, my make
> breaks (see the "make: *** No rule to make target `myheader.h', needed
> by `main.d'.  Stop." error below).

Sounds like...

http://make.paulandlesley.org/autodep.html
| if you remove or rename a prerequisite file (say a C .h file), make will
| stop with a fatal error, complaining that the target doesn't exist:
|
|  make: *** No rule to make target `bar.h', needed by `foo.P'.  Stop.

Read the rest of that "white paper" for a solution.




reply via email to

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