From: Steffen Prohaska Date: Sun, 27 Jul 2008 21:23:30 +0000 (-0700) Subject: git-gui: Correct installation of library to be $prefix/share X-Git-Tag: v1.6.0-rc2~3^2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8f1acf339da302ea912c8dd114042a1ef6f994f;p=git.git 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 Signed-off-by: Shawn O. Pearce --- diff --git a/Makefile b/Makefile index b19fb2d64..c9d67fe98 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,12 @@ ifndef gitexecdir endif ifndef sharedir +ifeq (git-core,$(notdir $(gitexecdir))) + sharedir := $(dir $(patsubst %/,%,$(dir $(gitexecdir))))share +else sharedir := $(dir $(gitexecdir))share endif +endif ifndef INSTALL INSTALL = install