threads / patch / 503

patchmake INSTALL binary in Makefile configurable via make variable

Subject: [PATCH] make INSTALL binary in Makefile configurable via make variable

## tl;dr

One message between May 6, 2005 and May 6, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Thomas Glanzmann· May 6, 2005, 13:46 UTC · lore
[PATCH] make INSTALL binary in Makefile configurable via make variable
On Solaris machines gnu install called ginstall
Show changes to Makefile +2 −1
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@
 
 CC=gcc
 AR=ar
+INSTALL=install
 
 SCRIPTS=git-apply-patch-script git-merge-one-file-script git-prune-script \
 	git-pull-script git-tag-script git-resolve-script
@@ -26,7 +27,7 @@
 all: $(PROG)
 
 install: $(PROG) $(SCRIPTS)
-	install $(PROG) $(SCRIPTS) $(HOME)/bin/
+	$(INSTALL) $(PROG) $(SCRIPTS) $(HOME)/bin/
 
 LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o \
 	 tag.o date.o

← back to recent threads