|
From: | Iwan Aucamp |
Subject: | Re: rebuild when flags change |
Date: | Wed, 15 Sep 2010 09:43:39 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100713 Lightning/1.0b2 Thunderbird/3.1.1 |
On 09/15/2010 05:44 AM, Lynn Lin wrote:
Our build command $(QUIET_CPP)$(CPP) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) -c $< when CPPFLAGS change,how can we enable make rebuild?
This might not be the best idea, and I have not yet implemented it in our build, but what I could come up with was to write all variables $(.VARIABLES) to a file (key and value, sorted by key) on each run and then on the next run do this again, take hash of old and new and if hash differs then touch a file which is as a dependency of all other files.
Possibly you could do the same with shell environment ( $(shell set) or $(shell env) ).
[Prev in Thread] | Current Thread | [Next in Thread] |