Re: make install rewrites source files
- From
Clemens Buchacher <drizzd@aon.at>
- Date
- Jan 26, 2012, 22:52 UTC
- Message-ID
- <20120126225231.GA14753@ecki>
- In-Reply-To
- <hbf.20120123j61g@bombur.uio.no>
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