git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Include Makefile.localdef in Makefile, if it exists.

From
Jason Riedy <ejr@eecs.berkeley.edu>
Date
Dec 2, 2005, 23:11 UTC
Message-ID
<28417.1133565102@lotus.CS.Berkeley.EDU>

Makefile.localdef is just a hook for local definitions. Users can track their definitions in a branch and not worry about merge conflicts.

Signed-off-by: E. Jason Riedy <ejr@cs.berkeley.edu>
---
 Makefile |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

applies-to: b93e1c78095bf4ace0806ab70295931f6da28174 65e5d3d6d31af3dda6d5cfd4e0745f34118955c3

diff --git a/Makefile b/Makefile
index df3c6eb..dc7581d 100644
--- a/Makefile
+++ b/Makefile
@@ -64,18 +64,21 @@ LDFLAGS =
 ALL_CFLAGS = $(CFLAGS)
 ALL_LDFLAGS = $(LDFLAGS)
 
-prefix = $(HOME)
-bindir = $(prefix)/bin
-template_dir = $(prefix)/share/git-core/templates/
-GIT_PYTHON_DIR = $(prefix)/share/git-core/python
-# DESTDIR=
-
 CC = gcc
 AR = ar
 TAR = tar
 INSTALL = install
 RPMBUILD = rpmbuild
 
+# Include local definitions, if any.
+-include Makefile.localdef
+
+prefix ?= $(HOME)
+bindir ?= $(prefix)/bin
+template_dir ?= $(prefix)/share/git-core/templates/
+GIT_PYTHON_DIR ?= $(prefix)/share/git-core/python
+# DESTDIR=
+
 # sparse is architecture-neutral, which means that we need to tell it
 # explicitly what architecture to check for. Fix this up for yours..
 SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
---
0.99.9h
Next: Johannes Schindelin
Message 1 of 5 in “Include Makefile.localdef in Makefile, if it exists.”
  1. Include Makefile.localdef in Makefile, if it exists.Jason Riedy, Dec 2, 2005
  2. Johannes SchindelinDec 3, 2005
  3. Jason RiedyDec 3, 2005
  4. Johannes SchindelinDec 3, 2005
  5. Junio C HamanoDec 3, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.