help-make
[Top][All Lists]
Advanced

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

Re: Force Rebuild if CXXFLAGS Change?


From: Eric Melski
Subject: Re: Force Rebuild if CXXFLAGS Change?
Date: Thu, 11 Aug 2011 00:49:00 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

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.



reply via email to

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