help-make
[Top][All Lists]
Advanced

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

Re: Communicating Variables to a Sub-make


From: Martin d'Anjou
Subject: Re: Communicating Variables to a Sub-make
Date: Wed, 18 Sep 2002 09:41:34 -0400 (EDT)

On Tue, 17 Sep 2002, Paul D. Smith wrote:

> The section of the GNU make manual entitled "Communicating Options to a
> Sub-make" will help; in particular read the description of MAKEFLAGS and
> MAKEOVERRIDES.

MAKEOVERRIDES is what I need. First I thought I would have to parse
MAKEFLAGS but I realized MAKEOVERRIDES was what I needed. So passing
command line variables to a sub-make (not sure it's really a sub-make per
say) is done like this in my application:

bsub "make $(MAKEOVERRIDES)"

bsub is a command that picks the least loaded machine on my network.

Using $(MAKE) has the unpleasant effect of calling make even when -n is 
passed.

Thank you.

Martin d'A.






reply via email to

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