@@ -1105,7 +1105,7 @@ endif
1105
1105
1106
1106
ifdef SANE_TOOL_PATH
1107
1107
SANE_TOOL_PATH_SQ = $(subst ','\'',$(SANE_TOOL_PATH ) )
1108
- BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix $(SANE_TOOL_PATH_SQ)|'
1108
+ BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix " $(SANE_TOOL_PATH_SQ)" |'
1109
1109
PATH := $(SANE_TOOL_PATH ) :${PATH}
1110
1110
else
1111
1111
BROKEN_PATH_FIX = '/^\# @@BROKEN_PATH_FIX@@$$/d'
@@ -2582,6 +2582,28 @@ install: all
2582
2582
$(INSTALL ) $(ALL_PROGRAMS ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2583
2583
$(INSTALL ) -m 644 $(SCRIPT_LIB ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2584
2584
$(INSTALL ) $(install_bindir_programs ) ' $(DESTDIR_SQ)$(bindir_SQ)'
2585
+ ifdef MSVC
2586
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.dll '$(DESTDIR_SQ)$(bindir_SQ)'
2587
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2588
+ # We DO NOT install the individual foo.o.pdb files because they
2589
+ # have already been rolled up into the exe's pdb file.
2590
+ # We DO NOT have pdb files for the builtin commands (like git-status.exe)
2591
+ # because it is just a copy/hardlink of git.exe, rather than a unique binary.
2592
+ $(INSTALL) git.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2593
+ $(INSTALL) git-shell.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2594
+ $(INSTALL) git-upload-pack.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2595
+ $(INSTALL) git-credential-store.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2596
+ $(INSTALL) git-daemon.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2597
+ $(INSTALL) git-fast-import.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2598
+ $(INSTALL) git-http-backend.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2599
+ $(INSTALL) git-http-fetch.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2600
+ $(INSTALL) git-http-push.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2601
+ $(INSTALL) git-imap-send.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2602
+ $(INSTALL) git-remote-http.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2603
+ $(INSTALL) git-remote-testsvn.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2604
+ $(INSTALL) git-sh-i18n--envsubst.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2605
+ $(INSTALL) git-show-index.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2606
+ endif
2585
2607
$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
2586
2608
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
2587
2609
$(INSTALL) -m 644 mergetools/* '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
@@ -2771,6 +2793,12 @@ endif
2771
2793
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
2772
2794
$(RM) GIT-USER-AGENT GIT-PREFIX
2773
2795
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
2796
+ ifdef MSVC
2797
+ $(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2798
+ $(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2799
+ $(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2800
+ $(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2801
+ endif
2774
2802
2775
2803
.PHONY : all install profile-clean clean strip
2776
2804
.PHONY : shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell
0 commit comments