!include $(WXDIR)\src\makevc.env
-all: $(EXTRATARGETS) $(LIBTARGET)
+!if "$(RM)" == ""
+RM= erase
+!endif
+
+all: $(D) $(EXTRATARGETS) $(LIBTARGET)
$(D) :
mkdir $(D)
nmake -f makefile.vc clean
$(LIBTARGET): $(OBJECTS)
- -erase $(LIBTARGET)
+ -$(RM) $(LIBTARGET)
$(implib) @<<
-out:$(LIBTARGET)
-machine:$(CPU)
<<
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