@@ -1191,7 +1191,7 @@ endif
1191
1191
1192
1192
ifdef SANE_TOOL_PATH
1193
1193
SANE_TOOL_PATH_SQ = $(subst ','\'',$(SANE_TOOL_PATH ) )
1194
- BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix $(SANE_TOOL_PATH_SQ)|'
1194
+ BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix " $(SANE_TOOL_PATH_SQ)" |'
1195
1195
PATH := $(SANE_TOOL_PATH ) :${PATH}
1196
1196
else
1197
1197
BROKEN_PATH_FIX = '/^\# @@BROKEN_PATH_FIX@@$$/d'
@@ -2765,6 +2765,28 @@ install: all
2765
2765
$(INSTALL ) $(ALL_PROGRAMS ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2766
2766
$(INSTALL ) -m 644 $(SCRIPT_LIB ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2767
2767
$(INSTALL ) $(install_bindir_programs ) ' $(DESTDIR_SQ)$(bindir_SQ)'
2768
+ ifdef MSVC
2769
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.dll '$(DESTDIR_SQ)$(bindir_SQ)'
2770
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2771
+ # We DO NOT install the individual foo.o.pdb files because they
2772
+ # have already been rolled up into the exe's pdb file.
2773
+ # We DO NOT have pdb files for the builtin commands (like git-status.exe)
2774
+ # because it is just a copy/hardlink of git.exe, rather than a unique binary.
2775
+ $(INSTALL) git.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2776
+ $(INSTALL) git-shell.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2777
+ $(INSTALL) git-upload-pack.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2778
+ $(INSTALL) git-credential-store.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2779
+ $(INSTALL) git-daemon.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2780
+ $(INSTALL) git-fast-import.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2781
+ $(INSTALL) git-http-backend.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2782
+ $(INSTALL) git-http-fetch.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2783
+ $(INSTALL) git-http-push.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2784
+ $(INSTALL) git-imap-send.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2785
+ $(INSTALL) git-remote-http.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2786
+ $(INSTALL) git-remote-testsvn.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2787
+ $(INSTALL) git-sh-i18n--envsubst.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2788
+ $(INSTALL) git-show-index.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2789
+ endif
2768
2790
$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
2769
2791
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
2770
2792
$(INSTALL) -m 644 mergetools/* '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
@@ -2965,6 +2987,12 @@ endif
2965
2987
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
2966
2988
$(RM) GIT-USER-AGENT GIT-PREFIX
2967
2989
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PERL-HEADER GIT-PYTHON-VARS
2990
+ ifdef MSVC
2991
+ $(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2992
+ $(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2993
+ $(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2994
+ $(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2995
+ endif
2968
2996
2969
2997
.PHONY : all install profile-clean cocciclean clean strip
2970
2998
.PHONY : shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell
0 commit comments