|
From: | Brian Vandenberg |
Subject: | Re: Defining new targets with eval during secondary expansion? |
Date: | Mon, 13 Mar 2017 10:04:34 -0600 |
This is a bit nicer but there's still some duplication. What I'd like to dois replace the argument on the right hand side with $(dir $@). With secondaryexpansion enabled I could write something like this:mktargetdir = $(eval $(call mkdir_template,$(dir $@))) $(dir $@).SECONDEXPANSION:build/foo/bar/baz/mytarget: | $$(mktargetdir)Then I can just write the path for each target and all the duplication is gone.But this doesn't work and I get the error above about prerequisites in recipes.
[Prev in Thread] | Current Thread | [Next in Thread] |