Skip to content

Commit 891c80f

Browse files
jeffhostetlerdscho
authored andcommitted
vs2015: teach 'make clean' to delete PDBs
Teach main Makefile to also delete the generated PDB files as well as the PDB files for the various EXE files during "make MSVC=1 clean". Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Jeff Hostetler <[email protected]>
1 parent ad2bc2b commit 891c80f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,6 +2987,12 @@ endif
29872987
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
29882988
$(RM) GIT-USER-AGENT GIT-PREFIX
29892989
$(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
29902996

29912997
.PHONY: all install profile-clean cocciclean clean strip
29922998
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)