what's more automated than make ???
-----Original Message-----
From:
plug-discuss-bounces@lists.plug.phoenix.az.us
[
mailto:plug-discuss-bounces@lists.plug.phoenix.az.us] On Behalf Of Kurt
Granroth
Sent: Tuesday, October 27, 2009 5:59 PM
To:
plug-discuss@lists.plug.phoenix.az.us
Subject: Re: Makefile question...
On 10/27/09 9:23 AM,
kitepilot@kitepilot.com wrote:
> Hello virtual inhabitants:
>
> I have a C++ application scattered over several directories.
> Each leaf directory has its own Makefile.
> I want to write a top-level Makefile that traverses the tree and
> builds the application.
> Makefile(s) are not one of my talents, and I cant' remember how to
> traverse the tree and fire up the nested Makefile(s).
>
> Any "make Guru" in the population?
Hmm... I'm tempted to recommend that you move away from Makefiles entirely
into something a little more automated. Still, that's not what your
question was.
---------------------------
DIRS = one two three
all:
for dir in ${DIRS}; do make -C $$dir $@; done
---------------------------
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss