X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df801fc6d47a2915768ba386d4b406249e2f56a9..a6de86fa530d95b6f30e0349e81de8b8692b348f:/src/makelib.vc?ds=inline diff --git a/src/makelib.vc b/src/makelib.vc index 6f5dccbcad..2c4b8b9b5a 100644 --- a/src/makelib.vc +++ b/src/makelib.vc @@ -14,7 +14,14 @@ WXDIR = $(WXWIN) !include $(WXDIR)\src\makevc.env -all: $(EXTRATARGETS) $(LIBTARGET) +!if "$(RM)" == "" +RM= erase +!endif + +all: $(D) $(EXTRATARGETS) $(LIBTARGET) + +$(D) : + mkdir $(D) wx: cd $(WXDIR)\src\msw @@ -25,7 +32,7 @@ wxclean: nmake -f makefile.vc clean $(LIBTARGET): $(OBJECTS) - -erase $(LIBTARGET) + -$(RM) $(LIBTARGET) $(implib) @<< -out:$(LIBTARGET) -machine:$(CPU) @@ -33,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