Skip to content

Commit a4d79b9

Browse files
avargitster
authored andcommitted
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 <[email protected]> (https://public-inbox.org/git/[email protected]/). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bc506d commit a4d79b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ pathsep = :
488488
bindir_relative = $(patsubst $(prefix)/%,%,$(bindir))
489489
mandir_relative = $(patsubst $(prefix)/%,%,$(mandir))
490490
infodir_relative = $(patsubst $(prefix)/%,%,$(infodir))
491+
gitexecdir_relative = $(patsubst $(prefix)/%,%,$(gitexecdir))
491492
htmldir_relative = $(patsubst $(prefix)/%,%,$(htmldir))
492493

493494
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
@@ -1735,6 +1736,7 @@ infodir_relative_SQ = $(subst ','\'',$(infodir_relative))
17351736
perllibdir_SQ = $(subst ','\'',$(perllibdir))
17361737
localedir_SQ = $(subst ','\'',$(localedir))
17371738
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
1739+
gitexecdir_relative_SQ = $(subst ','\'',$(gitexecdir_relative))
17381740
template_dir_SQ = $(subst ','\'',$(template_dir))
17391741
htmldir_relative_SQ = $(subst ','\'',$(htmldir_relative))
17401742
prefix_SQ = $(subst ','\'',$(prefix))

0 commit comments

Comments
 (0)