help-make
[Top][All Lists]
Advanced

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

Re: does make -p dump variables in the right order?


From: Adam Kellas
Subject: Re: does make -p dump variables in the right order?
Date: Wed, 3 Mar 2010 15:44:52 -0500

On Wed, Mar 3, 2010 at 2:45 PM, Adam Kellas <address@hidden> wrote:
It took me a while to figure out what was going on, since I had some actual -p output with repeated and conflicting variable settings which appeared to contradict what you say. But it turned out I generated those using "make -n -p" instead of "make -q -p". Since it's a recursive-make situation and since -n does not suppress $(MAKE) recursion, I was seeing conflicting settings derived from different Makefiles. Thanks for clarifying.

OK, the above is also at least partly wrong since -q and -n turn out to have the same behavior wrt $(MAKE). So the net result is that "make -q -p", in a recursive build setting, can result in multiple conflicting values for variables with no well-defined order to disambiguate. Oh well. I was hoping to do some useful re-engineering with -p output but this may put a limit on that.

AK

reply via email to

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