[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pre-including a generated file
From: |
Paul Smith |
Subject: |
Re: Pre-including a generated file |
Date: |
Wed, 12 Aug 2009 13:54:53 -0400 |
On Wed, 2009-08-12 at 14:21 -0300, Leandro Lucarella wrote:
> I need to use .PHONY though, because the script should be executed always.
> If I don't, make call the ./gen_file just the first time, and then it
> never gets outdated in successive make calls.
You can't use .PHONY or make will go into an infinite loop, because
every time it starts it will build the out of date file, then re-exec,
then build the out-of-date file again and re-exec, etc. etc.
> I still can't find a way to do it, so any other ideas are welcome.
See my previous reply RE using $(shell ...)
--
-------------------------------------------------------------------------------
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
Re: Pre-including a generated file, Paul Smith, 2009/08/12