* [PATCH] Parametrize installation directory
@ 2005-04-19 19:43 Pavel Roskin
0 siblings, 0 replies; only message in thread
From: Pavel Roskin @ 2005-04-19 19:43 UTC (permalink / raw)
To: git
Hello!
It shouldn't be necessary to patch Makefile to specify where scripts
should be installed. This patch introduces a variable bindir for that
purpose. The name of the variable was chosen for compatibility with
projects using Automake.
For example, to install scripts to /usr/local/bin use:
make install bindir=usr/local/bin
Signed-off-by: Pavel Roskin <proski@gnu.org>
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ CFLAGS=-g -O3 -Wall
CC=gcc
AR=ar
+bindir = $(HOME)/bin/
PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \
@@ -54,7 +55,7 @@ gitversion.sh: $(VERSION)
@chmod +x $@
install: $(PROG) $(GEN_SCRIPT)
- install $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(HOME)/bin/
+ install $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(bindir)
clean:
rm -f *.o $(PROG) $(GEN_SCRIPT) $(LIB_FILE)
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-19 19:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-19 19:43 [PATCH] Parametrize installation directory Pavel Roskin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.