Skip to content

Commit ce1caac

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 0a970d4 commit ce1caac

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
@@ -2752,6 +2752,12 @@ endif
27522752
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
27532753
$(RM) GIT-USER-AGENT GIT-PREFIX
27542754
$(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
27552761

27562762
.PHONY: all install profile-clean clean strip
27572763
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)