git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Support custom build options in config.mak
@ 2005-10-11  7:49 Johannes Schindelin
  2005-10-11  8:07 ` Junio C Hamano
  2005-10-11 17:18 ` Daniel Barkalow
  0 siblings, 2 replies; 4+ messages in thread
From: Johannes Schindelin @ 2005-10-11  7:49 UTC (permalink / raw)
  To: git, junkio

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.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

---

 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

applies-to: 1abfad3540e705eb33e589a8e8cf2be781c89030
94ca33678ce4f582d9bcbaa7baf9223e026c0b13
diff --git a/Makefile b/Makefile
index ea4332b..4e2fa7e 100644
--- a/Makefile
+++ b/Makefile
@@ -213,6 +213,10 @@ ifneq (,$(findstring arm,$(uname_M)))
 	ARM_SHA1 = YesPlease
 endif
 
+ifneq (,$(wildcard config.mak))
+include config.mak
+endif
+
 ifndef NO_CURL
 	ifdef CURLDIR
 		# This is still problematic -- gcc does not want -R.
---
0.99.8.GIT

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Support custom build options in config.mak
  2005-10-11  7:49 [PATCH] Support custom build options in config.mak Johannes Schindelin
@ 2005-10-11  8:07 ` Junio C Hamano
  2005-10-11 11:08   ` Johannes Schindelin
  2005-10-11 17:18 ` Daniel Barkalow
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2005-10-11  8:07 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

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 ;-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Support custom build options in config.mak
  2005-10-11  8:07 ` Junio C Hamano
@ 2005-10-11 11:08   ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2005-10-11 11:08 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Hi,

On Tue, 11 Oct 2005, Junio C Hamano wrote:

> 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:
> 
> [...]

:-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Support custom build options in config.mak
  2005-10-11  7:49 [PATCH] Support custom build options in config.mak Johannes Schindelin
  2005-10-11  8:07 ` Junio C Hamano
@ 2005-10-11 17:18 ` Daniel Barkalow
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Barkalow @ 2005-10-11 17:18 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git, junkio

On Tue, 11 Oct 2005, Johannes Schindelin wrote:

> +ifneq (,$(wildcard config.mak))
> +include config.mak
> +endif
> +

You can just do:

-include config.mak

for the same effect; it includes the file if it exists, and doesn't 
complain if it doesn't exist. (It also means that make has a clearer idea 
of what it's doing, which doesn't matter in this case, but is good in 
general.)

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-11 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11  7:49 [PATCH] Support custom build options in config.mak Johannes Schindelin
2005-10-11  8:07 ` Junio C Hamano
2005-10-11 11:08   ` Johannes Schindelin
2005-10-11 17:18 ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).