]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed code to use the RM environment variable (if one exists) to delete files....
authorGeorge Tasker <gtasker@allenbrook.com>
Tue, 16 Jan 2001 10:58:34 +0000 (10:58 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Tue, 16 Jan 2001 10:58:34 +0000 (10:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/makeprog.vc

index 1db976b6d5d2cf3cc9d5d820045b283d1fbe59c1..5905a183ebb2527d8e3a6822793f861e25684c0a 100644 (file)
@@ -17,6 +17,10 @@ WXUSINGDLL=0
 
 !include $(WXDIR)\src\makevc.env
 
+!if "$(RM)" == ""
+RM= erase
+!endif
+
 all:    $(PROGRAM).exe
 
 wx:
@@ -41,9 +45,9 @@ $(PROGRAM).res :      $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
     $(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
 
 clean:
-        -erase $(OBJECTS)
-        -erase *.exe
-        -erase *.res
-        -erase *.map
-        -erase *.sbr
-        -erase *.pdb
+        -$(RM) $(OBJECTS)
+        -$(RM) *.exe
+        -$(RM) *.res
+        -$(RM) *.map
+        -$(RM) *.sbr
+        -$(RM) *.pdb