help-make
[Top][All Lists]
Advanced

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

Dynamic Targets


From: Werner Mahr
Subject: Dynamic Targets
Date: Thu, 31 May 2007 14:49:00 +0200
User-agent: KNode/0.10.4

Hi,

is it possible to add targets that depend on the given targets from
commandline. I try to add the possibility to build 2 or more targets
with one command, without rebuilding the all the files everytime I need
it. Let's asume I have 3 progs in my sourcetree, and want to have a
target for all 3, and for each one separated. Now I can do make, and
the configure-script is called with the apropriate params, all is fine.
Another time I just want to build prog1 and prog3, so I want to just
do "make prog1 prog3" and make should call a target that adds the
configure-param to the var for each of the progs, before it calls the
configure and compile targets that are common for all, and then
executes the install target for the separate progs.

configure-<param-1> configure-<param-2>....

then

common-targets for all

then 

install-<param-1> install-<param-2>....

And this for sometimes 2 and sometimes 6 targets.

Is such a thing possible?
 
-- 
MfG usw.

Werner Mahr





reply via email to

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