fix dynamic "$(RM)" use instead of direct "rm -f" command
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 17 Sep 2012 17:18:53 +0000 (17:18 +0000)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 17 Sep 2012 17:18:53 +0000 (17:18 +0000)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
firmware/Makefile

index a9a1c40..9afd680 100644 (file)
@@ -60,17 +60,17 @@ read_fuses:
        $(UISP) --rd_fuses
 
 deepclean: clean
-       rm -f *~
+       $(RM) *~
 
 clean:
-       rm -f main.hex main.bin *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s
+       $(RM) main.hex main.bin *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s
 
 # file targets:
 main.bin:      $(OBJECTS)
        $(CC) $(CFLAGS) -o main.bin $(OBJECTS) $(LDFLAGS)
 
 main.hex:      main.bin
-       rm -f main.hex main.eep.hex
+       $(RM) main.hex main.eep.hex
        $(OBC) -j .text -j .data -O ihex main.bin main.hex
        $(SIZ) main.bin