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 <[EMAIL PROTECTED]>          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


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

Reply via email to