git-gui: Allow gitexecdir, INSTALL to be set by the caller.
When used as a subproject within git.git our Makefile must honor the gitexecdir which git.git's Makefile is passing down to us, ensuring that we install our executables into the libexec chosen by the end-user or packager. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Feb 12, 2007 at 15:37 UTC
663e7cf81d970d8320147d4d58dce37aaebfb09b
1 file changed
+7
-3
Makefile
+7
-3
@@ -12,12 +12,16 @@ ifndef SHELL_PATH
12
SHELL_PATH = /bin/sh
13
endif
14
15
-gitexecdir := $(shell git --exec-path)
16
-INSTALL = install
15
+ifndef gitexecdir
16
+ gitexecdir := $(shell git --exec-path)
17
+endif
18
+
19
+ifndef INSTALL
20
+ INSTALL = install
21
+endif
22
23
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
24
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
20
-
25
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
26
27
$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh