|
From: | David Wuertele |
Subject: | Re: Variable assignment that depends on a generated target |
Date: | Wed, 25 Apr 2007 00:00:13 +0000 (UTC) |
User-agent: | Loom/3.14 (http://gmane.org/) |
a way to specify that? > > Use deferred assignment > > VERSION = $(shell grep VERSION /path/to/some/file) > > and don't refer to it in any target that gets built earlier than > /path/to/some/file? I thought of that, but I also want to have another target use the\ VERSION variable: /path/to/some/other/target-$(VERSION).img: $(dependencies); touch $<at> The problem is that VERSION isn't getting set in time. I want to create the file that VERSION depends on before this rule gets evaluated.
[Prev in Thread] | Current Thread | [Next in Thread] |