Skip to content

Commit f7e556e

Browse files
avardscho
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 c37af95 commit f7e556e

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
@@ -494,6 +494,7 @@ pathsep = :
494494
bindir_relative = $(patsubst $(prefix)/%,%,$(bindir))
495495
mandir_relative = $(patsubst $(prefix)/%,%,$(mandir))
496496
infodir_relative = $(patsubst $(prefix)/%,%,$(infodir))
497+
gitexecdir_relative = $(patsubst $(prefix)/%,%,$(gitexecdir))
497498
htmldir_relative = $(patsubst $(prefix)/%,%,$(htmldir))
498499

499500
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
@@ -1741,6 +1742,7 @@ infodir_relative_SQ = $(subst ','\'',$(infodir_relative))
17411742
perllibdir_SQ = $(subst ','\'',$(perllibdir))
17421743
localedir_SQ = $(subst ','\'',$(localedir))
17431744
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
1745+
gitexecdir_relative_SQ = $(subst ','\'',$(gitexecdir_relative))
17441746
template_dir_SQ = $(subst ','\'',$(template_dir))
17451747
htmldir_relative_SQ = $(subst ','\'',$(htmldir_relative))
17461748
prefix_SQ = $(subst ','\'',$(prefix))

0 commit comments

Comments
 (0)