|
From: | Will Newton |
Subject: | Re: Preventing variables from being passed to a sub-make |
Date: | Thu, 7 Jun 2007 15:44:23 +0100 |
On 6/7/07, Paul Smith <address@hidden> wrote:
Anyway, one option is the one I gave. Another option would be to make your top-level makefile slightly more complex and pass the override values in through the environment rather than the command line. If you use something like: SUBDIRS=foo make rather than: make SUBDIRS=foo then the SUBDIRS value will be passed to sub-makes but through the environment, and any settings in the submake makefiles will take precedence over the environment setting.
Thanks, that looks like a good way to solve my problem.
[Prev in Thread] | Current Thread | [Next in Thread] |