Makefile: avoid absolute Windows path in built executables

MINGW converts an intial '/' in paths to the full Windows
path of MINGW's rootdir. Therefore, the result of the
build cannot be installed in another directory.

This is fixed by replacing the initial '/' by its octal
escape sequence that represents '/' in C strings. This
sequence avoids the path conversion.

Note, the Makefile contains the full path and can not be
used any longer to build git with a different prefix.
This commit is contained in:
Steffen Prohaska
2007-10-24 22:47:14 +02:00
parent 2f346edb63
commit 4e8904080d

View File

@@ -735,12 +735,12 @@ endif
# Shell quote (do not use $(call) to accommodate ancient setups);
SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER))
ETC_GITCONFIG_SQ = $(subst ','\'',$(ETC_GITCONFIG))
ETC_GITCONFIG_SQ = \057etc/gitconfig
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
bindir_SQ = $(subst ','\'',$(bindir))
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
template_dir_SQ = $(subst ','\'',$(template_dir))
template_dir_SQ = \057share/git-core/templates
prefix_SQ = $(subst ','\'',$(prefix))
sysconfdir_SQ = $(subst ','\'',$(sysconfdir))