On 08/11/2011 12:27 AM, Jeffrey Walton wrote:
Is it possible to have make rebuild a target if its CXXFLAGS change?
For example:
`make debug` # CXXFLAGS = -D_GLIBCXX_DEBUG -DDEBUG=1 -g3 -ggdb -O0
<user runs debug build>
`make release` #CXXFLAGS = -DNDEBUG=1 -g -O2
<make: nothing to make>
Here's one way to do it:
http://www.cmcrossroads.com/ask-mr-make/6528--rebuilding-when-cppflags-changes
br,
Eric Melski
Architect
Electric Cloud, Inc.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make