From: Clemens Buchacher Date: Thu, 26 Jan 2012 22:52:31 GMT Subject: Re: make install rewrites source files Message-ID: <20120126225231.GA14753@ecki> In-Reply-To: On Mon, Jan 23, 2012 at 09:57:51PM +0100, Hallvard Breien Furuseth wrote: > > 'profile-all' makes 'all' with different CFLAGS from those in > Makefile. How about removing the profile-all target and making it a build option instead? To enable it, do the usual: echo PROFILE_BUILD=YesPlease >> config.mak echo prefix=... >> config.mak make su make install In the Makefile, we would have ifdef PROFILE_BUILD all: $(MAKE) CFLAGS=... -fprofile-generate ... all-one $(MAKE) CFLAGS=... -fprofile-use ... all-one else all: all-one endif and each previous instance of 'all' replaced with 'all-one'. Clemens