From 565a2cab2287363233d1e6d304c24d1897f070c0 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 22 Jul 2011 18:40:35 -0700 Subject: [PATCH] Makefile.vc: rule maintenance Remove the bulk of xcopys from the TARGET rule as things are built to the correct location. Allow the clean rule to be appended and only delete DLLINC for dll builds to avoid prompting by erase when it's undefined. Change-Id: If88b2c68090099777b8be9f3a5fbde2c25ed66a6 --- Makefile.vc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile.vc b/Makefile.vc index 84d40f4e..f9b6b4b5 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -182,18 +182,13 @@ experimental: $(DIRLIB)\$(TARGET): $(X_OBJS) $(LNK) $(LFLAGS) $(X_OBJS) - -xcopy $(DIROBJ)\$(LIB_NAME).dll $(DIRBIN) /y - -xcopy $(DIROBJ)\$(LIB_NAME).lib $(DIRLIB) /y - -xcopy $(DIROBJ)\$(LIB_NAME_DEBUG).dll $(DIRBIN) /y - -xcopy $(DIROBJ)\$(LIB_NAME_DEBUG).lib $(DIRLIB) /y - -xcopy $(DIROBJ)\$(IMPLIB_NAME).lib $(DIRLIB) /y - -xcopy $(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib $(DIRLIB) /y - -xcopy $(DIROBJ)\*.exp $(DIRLIB) /y - -xcopy $(DIROBJ)\*.pdb $(DIRLIB) /y + -xcopy $(DIROBJ)\*.pdb $(DIRLIB) /y $(X_OBJS): $(DIROBJ)\enc $(DIROBJ)\dec $(DIRLIB) $(DIRINC) $(DIRBIN) !IF "$(DLLBUILD)" == "TRUE" $(X_OBJS): $(DIROBJ)\$(DLLINC) +clean:: + @-erase /s $(DIROBJ)\$(DLLINC) 2> NUL !ENDIF $(EXAMPLES_OBJS): $(DIROBJ)\examples $(DIRLIB)\$(TARGET) @@ -236,7 +231,7 @@ $(DIROBJ)\$(DLLINC): $(MT) -manifest $@.manifest -outputresource:$@;1 del $@.manifest -clean: +clean:: @-erase /s $(DIROBJ)\*.dll 2> NUL @-erase /s $(DIROBJ)\*.exp 2> NUL @-erase /s $(DIROBJ)\*.idb 2> NUL @@ -245,6 +240,5 @@ clean: @-erase /s $(DIROBJ)\*.pch 2> NUL @-erase /s $(DIROBJ)\*.pdb 2> NUL @-erase /s $(DIROBJ)\*.res 2> NUL - @-erase /s $(DIROBJ)\$(DLLINC) 2> NUL !ENDIF # End of case where a config was provided.