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

Installing without rebuilding

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Nov 11, 2007, 16:49 UTC
Message-ID
<8B92E213-17DB-4E83-B045-01CE0E7D26CB@silverinsanity.com>
Git has a very clever Makefile.  Sometimes its a little overly clever.
1) I use stow to manage my /usr/local directory.  With many other  
programs I am able to build with a prefix of /usr/local and install  
with a prefix of /usr/local/stow/$program.  Git detects a change in  
the build variables and recompiles pretty much everything.
2) If I remove the old copy of git before installing the new, git will  
notice this and again start a (smaller) recompile because the GIT- 
VERSION-FILE file changes from something detailed like  
"1.5.3.5.622.g6fd7a" to "1.5.3.GIT".

Is there a way to tell git to be a bit less clever and just install the already compiled program? If not, would changing the Makefile to read something like the following be accepted?

----- 8< -----
install: all install-dumb
install-dumb: # No rebuild!
   # Current install process
----- 8< -----
~~ Brian
Next: Benoit Sigoure
Message 1 of 3 in “Installing without rebuilding”
  1. Brian GernhardtNov 11, 2007
  2. Benoit SigoureNov 11, 2007
  3. Brian GernhardtNov 12, 2007

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.