Makefile: add a gitexecdir_relative variable
This variable will be e.g. "libexec/git-core" if gitexecdir=/tmp/git/libexec/git-core is given. It'll be used by a subsequent change. This is stolen from the yet-to-be integrated (needs resubmission) "Makefile: add Perl runtime prefix support" patch on the mailing list. See <20180108030239.92036-3-dnj@google.com> (https://public-inbox.org/git/20180108030239.92036-3-dnj@google.com/). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Mar 13, 2018 at 20:39 UTC
a4d79b99a03d8f4a8d7b0c41f59e4a94393419c5
1 file changed
+2
Makefile
+2
@@ -488,6 +488,7 @@ pathsep = :
488
bindir_relative = $(patsubst $(prefix)/%,%,$(bindir))
489
mandir_relative = $(patsubst $(prefix)/%,%,$(mandir))
490
infodir_relative = $(patsubst $(prefix)/%,%,$(infodir))
491
+gitexecdir_relative = $(patsubst $(prefix)/%,%,$(gitexecdir))
492
htmldir_relative = $(patsubst $(prefix)/%,%,$(htmldir))
493
494
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
@@ -1735,6 +1736,7 @@ infodir_relative_SQ = $(subst ','\'',$(infodir_relative))
1736
perllibdir_SQ = $(subst ','\'',$(perllibdir))
1737
localedir_SQ = $(subst ','\'',$(localedir))
1738
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
1739
+gitexecdir_relative_SQ = $(subst ','\'',$(gitexecdir_relative))
1740
template_dir_SQ = $(subst ','\'',$(template_dir))
1741
htmldir_relative_SQ = $(subst ','\'',$(htmldir_relative))
1742
prefix_SQ = $(subst ','\'',$(prefix))