{"thread":{"id":"10808","subject":"Installing without rebuilding","startedAt":"2007-11-11T16:49:19Z","lastAt":"2007-11-12T22:33:36Z","messageCount":3,"participants":["Brian Gernhardt","Benoit Sigoure"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59338","messageId":"8B92E213-17DB-4E83-B045-01CE0E7D26CB@silverinsanity.com","threadId":"10808","inReplyTo":null,"subject":"Installing without rebuilding","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2007-11-11T16:49:19Z","receivedAt":"2007-11-11T16:49:19Z","isPatch":false,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"Git has a very clever Makefile.  Sometimes its a little overly clever.\n\n1) I use stow to manage my /usr/local directory.  With many other  \nprograms I am able to build with a prefix of /usr/local and install  \nwith a prefix of /usr/local/stow/$program.  Git detects a change in  \nthe build variables and recompiles pretty much everything.\n\n2) If I remove the old copy of git before installing the new, git will  \nnotice this and again start a (smaller) recompile because the GIT- \nVERSION-FILE file changes from something detailed like  \n\"1.5.3.5.622.g6fd7a\" to \"1.5.3.GIT\".\n\nIs there a way to tell git to be a bit less clever and just install  \nthe already compiled program?  If not, would changing the Makefile to  \nread something like the following be accepted?\n\n----- 8< -----\n\ninstall: all install-dumb\n\ninstall-dumb: # No rebuild!\n   # Current install process\n\n----- 8< -----\n\n~~ Brian\n"},{"id":"59339","messageId":"8FE99206-EECF-4081-B4B7-82707FA4E863@lrde.epita.fr","threadId":"10808","inReplyTo":"8B92E213-17DB-4E83-B045-01CE0E7D26CB@silverinsanity.com","subject":"Re: Installing without rebuilding","fromName":"Benoit Sigoure","fromEmail":"tsuna@lrde.epita.fr","sentAt":"2007-11-11T16:55:31Z","receivedAt":"2007-11-11T16:55:31Z","isPatch":false,"sender":{"key":"tsunanet@gmail.com","avatar":"https://avatars.githubusercontent.com/u/128281?v=4"},"body":"On Nov 11, 2007, at 5:49 PM, Brian Gernhardt wrote:\n\n> Git has a very clever Makefile.  Sometimes its a little overly clever.\n>\n> 1) I use stow to manage my /usr/local directory.  With many other  \n> programs I am able to build with a prefix of /usr/local and install  \n> with a prefix of /usr/local/stow/$program.  Git detects a change in  \n> the build variables and recompiles pretty much everything.\n>\n> 2) If I remove the old copy of git before installing the new, git  \n> will notice this and again start a (smaller) recompile because the  \n> GIT-VERSION-FILE file changes from something detailed like  \n> \"1.5.3.5.622.g6fd7a\" to \"1.5.3.GIT\".\n>\n> Is there a way to tell git to be a bit less clever and just install  \n> the already compiled program?  If not, would changing the Makefile  \n> to read something like the following be accepted?\n>\n> ----- 8< -----\n>\n> install: all install-dumb\n>\n> install-dumb: # No rebuild!\n>   # Current install process\n>\n> ----- 8< -----\n\nI also stow git (which doesn't come with a make uninstall grrrrrr)  \nand what I do is that I dropped the dependency of `install' on  \n`all'.  Also, I always install the new version before removing (stow - \nD) the previous one.\n\nCheers,\n\n-- \nBenoit Sigoure aka Tsuna\nEPITA Research and Development Laboratory\n\n\n"},{"id":"59590","messageId":"FA694907-4845-4102-8A74-F084F88626AE@silverinsanity.com","threadId":"10808","inReplyTo":"8B92E213-17DB-4E83-B045-01CE0E7D26CB@silverinsanity.com","subject":"Re: Installing without rebuilding","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2007-11-12T22:33:36Z","receivedAt":"2007-11-12T22:33:36Z","isPatch":false,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"\nOn Nov 11, 2007, at 11:49 AM, Brian Gernhardt wrote:\n\n> Git has a very clever Makefile.  Sometimes its a little overly clever.\n\nI found a way around the Makefile cleverness.  It's ugly, but it  \nrequires no changes to the existing Makefile.  I'm posting it in case  \nanyone finds this thread trying to do what I'm doing.  My nieve  \nsuggestion fails, BTW, because git-gui's Makefile does the same  \ncleverness.\n\n----- 8< -----\n\n# Install ignoring version changes, etc.\nignore=\"-o GIT-VERSION-FILE -o GIT-CFLAGS -o GIT-GUI-VARS\"\ninstall=\"$ignore prefix=/usr/local/stow/git\"\ngitgui=\"$install gitexecdir=/usr/local/bin\"\nsudo make $install NO_TCLTK=Yes install install-doc\nsudo make $gitgui -C git-gui install\n\n----- 8< -----\n\nWhy do I have to go through so many hoops just to install what I've  \nalready compiled?\n\n~~ Brian\n"}]}