[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PHONY targets and implicit rules
From: |
Paul Smith |
Subject: |
Re: PHONY targets and implicit rules |
Date: |
Wed, 21 Dec 2011 07:53:18 -0500 |
On Wed, 2011-12-21 at 12:28 +0400, Ilya Loginov wrote:
> > > 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?
Read the section "How Makefiles are Remade" in the GNU make manual.
Cheers!
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist