On Tue, 20 Dec 2011 20:58:52 -0800
Philip Guenther <guent...@gmail.com> wrote:


> > So, I have 2 questions:
> > 1) Does implicit rules called for phony targets?
> 
> No.  As it says in the info pages:
> ----
>    Since it knows that phony targets do not name actual files that
> could be remade from other files, `make' skips the implicit rule search
> for phony targets (*note Implicit Rules::).
> ----

Thanks!
 
> > 2) Why in second case I get message "Nothing to be done for `Makefile'"?
> 
> Your Makefile, if taken literally, would result in an infinite loop,
> as make would have to build the Makefile, then reinvoke itself, then
> rebuild the Makefile, then reinvoke itself, etc.  So, since your
> Makefile is broken, *anything* make does is correct.  No?

Really, it's not clear for me. Why make reinvokes itself?

-- 
Ilya Loginov <islogi...@gmail.com>

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to