help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable assignment that depends on a generated target


From: Eli Zaretskii
Subject: Re: Variable assignment that depends on a generated target
Date: Wed, 25 Apr 2007 06:27:10 +0300

> From: David Wuertele <address@hidden>
> Date: Tue, 24 Apr 2007 23:17:57 +0000 (UTC)
> 
> I have a variable named VERSION that is set thusly:
> 
>    VERSION := $(shell grep VERSION /path/to/some/file)
> 
> The problem is that /path/to/some/file is a target that is generated after the
> VERSION is assigned.
> 
> I would like to force /path/to/some/file to get generated before VERSION is
> assigned.  Is there a way to specify that?

How about

 VERSION := $(shell make /path/to/some/file && grep VERSION /path/to/some/file)

?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]