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>
This commit is contained in:
parent
0960f7d6db
commit
663e7cf81d
10
Makefile
10
Makefile
@ -12,12 +12,16 @@ ifndef SHELL_PATH
|
|||||||
SHELL_PATH = /bin/sh
|
SHELL_PATH = /bin/sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gitexecdir := $(shell git --exec-path)
|
ifndef gitexecdir
|
||||||
INSTALL = install
|
gitexecdir := $(shell git --exec-path)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef INSTALL
|
||||||
|
INSTALL = install
|
||||||
|
endif
|
||||||
|
|
||||||
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
|
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
|
||||||
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
|
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
|
||||||
|
|
||||||
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
||||||
|
|
||||||
$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
|
$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user