[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable assignment that depends on a generated target
From: |
Paul Smith |
Subject: |
Re: Variable assignment that depends on a generated target |
Date: |
Wed, 25 Apr 2007 09:12:34 -0400 |
On Wed, 2007-04-25 at 06:27 +0300, Eli Zaretskii wrote:
> How about
>
> VERSION := $(shell make /path/to/some/file && grep VERSION
> /path/to/some/file)
This will work, but I prefer the include version I mentioned earlier.
Also note you should always use $(MAKE), never "make", when invoking a
submake (even within a shell function).
Cheers!
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist