Re: [PATCH] Support custom build options in config.mak
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 11, 2005, 08:07 UTC
- Message-ID
- <7vr7astr27.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0510110948170.19774@wbgn013.biozentrum.uni-wuerzburg.de>
With this patch, you can store the configuration options like NO_CURL=YesPlease or NO_OPENSSL=YesPlease into a file named Make, and I typically do this:
$ ./Make CFLAGS='-O1 -Wal -g' clean test install
My "Make" file looks like this:
$ cat Make
#!/bin/sh PATH=/usr/bin:/bin
LANG=C
LC_CTYPE=C
export PATH LANG LC_CTYPE make bindir=$HOME/bin/Linux \
PYTHON_PATH=/usr/bin/python2.4 \
CFLAGS="${CFLAGS-'-O1 -Wall -g'}" \
WITH_SEND_EMAIL=YesPlease "$@"Nothing-to-sign-off-by: Junio C Hamano <junkio@cox.net> --- 0 files changed.
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> With this patch, it is possible to store configuration options like
> NO_CURL=YesPlease or NO_OPENSSL=YesPlease into a file named
> config.mak, which will be included in the Makefile.IOW, I'll have to think about its merit ;-)