{"thread":{"id":"145","subject":"[PATCH] Parametrize installation directory","startedAt":"2005-04-19T19:43:24Z","lastAt":"2005-04-19T19:43:24Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"859","messageId":"1113939804.3684.3.camel@dv","threadId":"145","inReplyTo":null,"subject":"[PATCH] Parametrize installation directory","fromName":"Pavel Roskin","fromEmail":"proskin@roinet.com","sentAt":"2005-04-19T19:43:24Z","receivedAt":"2005-04-19T19:43:24Z","isPatch":true,"sender":{"key":"proskin@roinet.com","avatar":null},"body":"Hello!\n\nIt shouldn't be necessary to patch Makefile to specify where scripts\nshould be installed.  This patch introduces a variable bindir for that\npurpose.  The name of the variable was chosen for compatibility with\nprojects using Automake.\n\nFor example, to install scripts to /usr/local/bin use:\nmake install bindir=usr/local/bin\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\n--- a/Makefile\n+++ b/Makefile\n@@ -12,6 +12,7 @@ CFLAGS=-g -O3 -Wall\n CC=gcc\n AR=ar\n \n+bindir = $(HOME)/bin/\n \n PROG=   update-cache show-diff init-db write-tree read-tree commit-tree \\\n \tcat-file fsck-cache checkout-cache diff-tree rev-tree show-files \\\n@@ -54,7 +55,7 @@ gitversion.sh: $(VERSION)\n \t@chmod +x $@\n \n install: $(PROG) $(GEN_SCRIPT)\n-\tinstall $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(HOME)/bin/\n+\tinstall $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(bindir)\n \n clean:\n \trm -f *.o $(PROG) $(GEN_SCRIPT) $(LIB_FILE)\n\n\n-- \nRegards,\nPavel Roskin\n\n\n"}]}