@@ -1101,7 +1101,7 @@ endif
1101
1101
1102
1102
ifdef SANE_TOOL_PATH
1103
1103
SANE_TOOL_PATH_SQ = $(subst ','\'',$(SANE_TOOL_PATH ) )
1104
- BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix $(SANE_TOOL_PATH_SQ)|'
1104
+ BROKEN_PATH_FIX = 's|^\# @@BROKEN_PATH_FIX@@$$|git_broken_path_fix " $(SANE_TOOL_PATH_SQ)" |'
1105
1105
PATH := $(SANE_TOOL_PATH ) :${PATH}
1106
1106
else
1107
1107
BROKEN_PATH_FIX = '/^\# @@BROKEN_PATH_FIX@@$$/d'
@@ -2563,6 +2563,28 @@ install: all
2563
2563
$(INSTALL ) $(ALL_PROGRAMS ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2564
2564
$(INSTALL ) -m 644 $(SCRIPT_LIB ) ' $(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2565
2565
$(INSTALL ) $(install_bindir_programs ) ' $(DESTDIR_SQ)$(bindir_SQ)'
2566
+ ifdef MSVC
2567
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.dll '$(DESTDIR_SQ)$(bindir_SQ)'
2568
+ $(INSTALL) compat/vcbuild/GEN.DEPS/bin/*.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2569
+ # We DO NOT install the individual foo.o.pdb files because they
2570
+ # have already been rolled up into the exe's pdb file.
2571
+ # We DO NOT have pdb files for the builtin commands (like git-status.exe)
2572
+ # because it is just a copy/hardlink of git.exe, rather than a unique binary.
2573
+ $(INSTALL) git.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2574
+ $(INSTALL) git-shell.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2575
+ $(INSTALL) git-upload-pack.pdb '$(DESTDIR_SQ)$(bindir_SQ)'
2576
+ $(INSTALL) git-credential-store.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2577
+ $(INSTALL) git-daemon.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2578
+ $(INSTALL) git-fast-import.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2579
+ $(INSTALL) git-http-backend.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2580
+ $(INSTALL) git-http-fetch.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2581
+ $(INSTALL) git-http-push.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2582
+ $(INSTALL) git-imap-send.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2583
+ $(INSTALL) git-remote-http.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2584
+ $(INSTALL) git-remote-testsvn.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2585
+ $(INSTALL) git-sh-i18n--envsubst.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2586
+ $(INSTALL) git-show-index.pdb '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
2587
+ endif
2566
2588
$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
2567
2589
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
2568
2590
$(INSTALL) -m 644 mergetools/* '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
@@ -2730,6 +2752,12 @@ endif
2730
2752
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
2731
2753
$(RM) GIT-USER-AGENT GIT-PREFIX
2732
2754
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
2755
+ ifdef MSVC
2756
+ $(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2757
+ $(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2758
+ $(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2759
+ $(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2760
+ endif
2733
2761
2734
2762
.PHONY : all install profile-clean clean strip
2735
2763
.PHONY : shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell
0 commit comments