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

Re: [PATCH] Pass -DDEFAULT_GIT_TEMPLATE_DIR only where actually used.

From
Junio C Hamano <junkio@cox.net>
Date
Jun 22, 2006, 09:04 UTC
Message-ID
<7v7j39tvcr.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060622104901.f3543f07.tihirvon@gmail.com>
Timo Hirvonen <tihirvon@gmail.com> writes:
Show 17 quoted lines
> Junio C Hamano <junkio@cox.net> wrote:
>
>> By the way, I really started hating that we have $(GIT_VERSION)
>> in $(TRACK_CFLAGS).  Since the version string is tied to the
>> HEAD commit object name, having it in $(TRACK_CFLAGS) means that
>> every time I switch branches, make a new commit on top of the
>> current branch, or checkout-compile-and-then-make-local-change
>> sequence would force pretty much everything to be rebuilt.
>...
>> For that matter, I do not think tracking prefix_SQ makes much
>> sense since what matters are bindir, gitexecdir and template_dir
>> which are already covered, and prefix is merely a convenience to
>> set these three (four, counting GIT_PYTHON_DIR; we probably
>> should add it to TRACK_CFLAGS).
>
> Yes, only ALL_CFLAGS, bindir, gitexecdir, template_dir and
> GIT_PYTHON_DIR should be in TRACK_CFLAGS.
Exactly my thinking.  Let's do it like this, then.
-- >8 --
Makefile: do not force unneeded recompilation upon GIT_VERSION changes
---
diff --git a/Makefile b/Makefile
index 55a84d4..d45f3dc 100644
--- a/Makefile
+++ b/Makefile
@@ -612,7 +612,7 @@ tags:
 	find . -name '*.[hcS]' -print | xargs ctags -a
 
 ### Detect prefix changes
-TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):$(GIT_VERSION):\
+TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):$(GIT_PYTHON_DIR_SQ):\
              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
 
 GIT-CFLAGS: .FORCE-GIT-CFLAGS
Previous: Timo HirvonenNext: Petr Baudis
Message 4 of 8 in “Pass -DDEFAULT_GIT_TEMPLATE_DIR only where actually used.”
  1. Pass -DDEFAULT_GIT_TEMPLATE_DIR only where actually used.Yakov Lerner, Jun 22, 2006
  2. Junio C HamanoJun 22, 2006
  3. Timo HirvonenJun 22, 2006
  4. Junio C HamanoJun 22, 2006
  5. Petr BaudisJun 22, 2006
  6. Junio C HamanoJun 22, 2006
  7. Petr BaudisJun 22, 2006
  8. Junio C HamanoJun 22, 2006

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.