[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Best practice for passing variables via recursive make
From: |
Garrett Cooper |
Subject: |
Best practice for passing variables via recursive make |
Date: |
Thu, 17 Jul 2008 16:26:02 -0700 |
Hi,
Really simple question, but I was wondering what the best
practice was for passing variables (optionally with spaces) via
recursive make calls, i.e. is it:
$(MAKE) -C some_dir SOME_VAR=$(SOME_VALUE) all
$(MAKE) -C some_dir "SOME_VAR=$(SOME_VALUE)" all
Out of habit I do the second option, but is it required? Is there
any "weirdness" associated with this? I'm asking because I got a weird
make related error where a value passed in via make replaced another
value, even though the top-level invocation appears correct.
-Garrett
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Best practice for passing variables via recursive make,
Garrett Cooper <=