[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
invoke target multiple times
From: |
Rinehart, Raleigh |
Subject: |
invoke target multiple times |
Date: |
Wed, 11 Jun 2008 15:13:58 -0500 |
Hi All,
I have a fairly complex make setup with many modules and compile
options. Right now everything works great, the problem is I'm trying to
add some additionally functionality to make life easier and can't seem
to find a way to do it in make.
In a nutshell I have several variables (e.g RELEASE, CUNIT, HW, etc)
that get passed in on the cmd line according to what the user wants to
build. The values of these variables cause different compile options,
macro defs, libraries, sources, etc get specified for the build. The
build basically has a target that produces an object file suitable for
uploading to our device (for sake of discussion lets call this target
'pdriver').
What I would like to do is add another target 'world' that would set the
variables and calls pdriver, and then does this again for each
combination of variables. Thus invoking the pdriver target multiple
times.
This would be pretty simple in a shell script or batch file,
unfortunately I need a pure make solution.
Any ideas?
Thanks,
-raleigh
- invoke target multiple times,
Rinehart, Raleigh <=