git-gui: Correct installation of library to be $prefix/share
We always wanted the library for git-gui to install into the $prefix/share directory, not $prefix/libexec/share. All of the files in our library are platform independent and may be reused across systems, like any other content stored in the share directory. Our computation of where our library should install to was broken when git itself started installing to $prefix/libexec/git-core, which was one level down from where we expected it to be. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Steffen Prohaska committed
Jul 27, 2008 at 14:23 UTC
f8f1acf339da302ea912c8dd114042a1ef6f994f
1 file changed
+4
Makefile
+4
@@ -34,8 +34,12 @@ ifndef gitexecdir
34
endif
35
36
ifndef sharedir
37
+ifeq (git-core,$(notdir $(gitexecdir)))
38
+ sharedir := $(dir $(patsubst %/,%,$(dir $(gitexecdir))))share
39
+else
40
sharedir := $(dir $(gitexecdir))share
41
endif
42
+endif
43
44
ifndef INSTALL
45
INSTALL = install