From 671556572762c90f41f63f1336218068201979cd Mon Sep 17 00:00:00 2001 From: peabody124 Date: Sun, 27 Jun 2010 19:44:39 +0000 Subject: [PATCH] Make CODE_SOURCERY switch affect rm command git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@909 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/OpenPilot/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flight/OpenPilot/Makefile b/flight/OpenPilot/Makefile index 147a590a4..011ddc008 100644 --- a/flight/OpenPilot/Makefile +++ b/flight/OpenPilot/Makefile @@ -44,7 +44,11 @@ CODE_SOURCERY ?= YES TCHAIN_PREFIX ?= arm-none-eabi- # Remove command is different for Code Sourcery on Windows -REMOVE_CMD ?= cs-rm +ifeq ($(CODE_SOURCERY), YES) +REMOVE_CMD = cs-rm +else +REMOVE_CMD = rm +endif FLASH_TOOL = OPENOCD