From 342e66da44770e4035de3ab510bd9a732fed60df Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Tue, 24 Sep 2013 23:33:27 +0100 Subject: [PATCH] dm36x: Cross-platform Makefile. --- ports/arm/platforms/dm36x/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ports/arm/platforms/dm36x/Makefile b/ports/arm/platforms/dm36x/Makefile index e64d01f..29e1615 100644 --- a/ports/arm/platforms/dm36x/Makefile +++ b/ports/arm/platforms/dm36x/Makefile @@ -16,6 +16,13 @@ CC=arm-none-eabi-gcc OBJCOPY=arm-none-eabi-objcopy ARCHIVE=arm-none-eabi-ar +# Folder delete command (OS-specific) +ifeq ($(OS),Windows_NT) + RMDIR=rd /s /q +else + RMDIR=rm -rf +endif + # Location of TFTP root folder for running tests via U-Boot/TFTP. # Note, you may need to run the Makefile as root in order to write # to this folder. @@ -133,11 +140,10 @@ $(PORT_ASM_OBJECTS): %.o: $(PORT_DIR)/%.s # Clean clean: - rm -f *.o *.elf *.map *.lst - rm -rf doxygen-kernel - rm -rf doxygen-arm - rm -rf doxygen-platform - rm -rf build + $(RMDIR) build + $(RMDIR) doxygen-kernel + $(RMDIR) doxygen-arm + $(RMDIR) doxygen-platform # Generate Doxygen documentation doxygen: