X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1126585b76e4b6ec750ebc60f61f2cf73c5712e0..24bcaec36746abeeb9e2023d03e3ab4289006fc3:/src/makelib.vc?ds=sidebyside diff --git a/src/makelib.vc b/src/makelib.vc index 67158bab05..2c4b8b9b5a 100644 --- a/src/makelib.vc +++ b/src/makelib.vc @@ -14,7 +14,11 @@ WXDIR = $(WXWIN) !include $(WXDIR)\src\makevc.env -all: $(EXTRATARGETS) $(LIBTARGET) +!if "$(RM)" == "" +RM= erase +!endif + +all: $(D) $(EXTRATARGETS) $(LIBTARGET) $(D) : mkdir $(D) @@ -28,7 +32,7 @@ wxclean: nmake -f makefile.vc clean $(LIBTARGET): $(OBJECTS) - -erase $(LIBTARGET) + -$(RM) $(LIBTARGET) $(implib) @<< -out:$(LIBTARGET) -machine:$(CPU) @@ -36,10 +40,10 @@ $(OBJECTS) << clean: - -erase $(LIBTARGET) - -erase $(OBJECTS) - -erase *.exe - -erase *.res - -erase *.map - -erase *.sbr - -erase *.pdb + -$(RM) $(LIBTARGET) + -$(RM) $(OBJECTS) + -$(RM) *.exe + -$(RM) *.res + -$(RM) *.map + -$(RM) *.sbr + -$(RM) *.pdb