From 6b24a526d9f24db009be74326d8b46193a0a7860 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Wed, 26 Apr 2017 09:39:58 -0400 Subject: [PATCH] Makefile: clean PDBs when MSVC=1 Teach main Makefile to also delete the PDB files for the various EXE files during "make MSVC=1 clean". Previously, we only deleted the PDB files associated with individual .o files. Signed-off-by: Jeff Hostetler --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 47827aa129..38a313e314 100644 --- a/Makefile +++ b/Makefile @@ -2583,6 +2583,9 @@ endif $(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS ifdef MSVC $(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS)) + $(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS)) + $(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS)) + $(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS)) endif .PHONY: all install profile-clean clean strip