On Sat, Oct 25, 2008 at 7:24 AM, Peng Yu <[EMAIL PROTECTED]> 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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to