help-make
[Top][All Lists]
Advanced

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

Re: How to automatically update a automatically generated dependence fil


From: Philip Guenther
Subject: Re: How to automatically update a automatically generated dependence file?
Date: Sat, 25 Oct 2008 11:54:05 -0700

On Sat, Oct 25, 2008 at 7:24 AM, Peng Yu <address@hidden> wrote:
...
> This works. But I want to understand how this works. 'main.d' is the 
> following.
>
> -------------------------------------------------
> main.o: main.cpp print.hpp nothing1.hpp nothing3.hpp
>
> print.hpp:
>
> nothing1.hpp:
>
> nothing3.hpp:
> ---------------------------------------------
>
> How do the last three rules come into play?
>
> Suppose I nothing1.cpp so that it includes nothing2.hpp, and I rename
> nothing3.hpp to nothing2.hpp. Why remake would be success?

You were previously directed to the webpage
http://make.paulandlesley.org/autodep.html and particularly the
section titled "Advanced Auto-Dependencies".  That contains a
subsection entitled "Avoiding ``No rule to make target ...'' Errors"
which explains better than I can how this technique works.


Philip Guenther




reply via email to

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