summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2014-06-30 17:53:10 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2014-06-30 17:57:24 +0200
commitd30c500b962c5b5c74c4492a7db4171869d6505a (patch)
tree61de2e00b94ef828ab52135dbdbf122e8d5cb46e
parent5877f7b5c077df92983553d455318b26096e8bf0 (diff)
downloadrockbox-d30c500.tar.gz
rockbox-d30c500.zip
Make clean target work for MSVC dll Makefile on Windows.
Change-Id: Ifb9a00530720e0997421af9a07ae8c133f0edfd0
-rw-r--r--rbutil/rbutilqt/msvc/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/msvc/Makefile b/rbutil/rbutilqt/msvc/Makefile
index 3c1d6a0f36..014e7c87a2 100644
--- a/rbutil/rbutilqt/msvc/Makefile
+++ b/rbutil/rbutilqt/msvc/Makefile
@@ -18,11 +18,15 @@ LIBS = ipodpatcher sansapatcher chinachippatcher \
mkamsboot mkimxboot mkmpioboot mktccboot \
ucl rbspeex
-ifeq ($(findstring Linux,$(shell uname)),Linux)
+# on Windows uname is not available. However, the environment variable OS holds
+# Windows_NT so check that instead.
+ifneq ($(OS),Windows_NT)
PWD=$(shell pwd)
+RM=rm -rf
all: dll
else
PWD=$(abspath $(TOP))
+RM=del /q /f
all: lib
endif
@@ -50,8 +54,8 @@ lib: $(addsuffix .lib,$(LIBS))
@lib /machine:x86 /nologo /def:$(basename $<).def
clean:
- rm -rf $(addsuffix .dll,$(LIBS))
- rm -rf $(addsuffix .def,$(LIBS))
- rm -rf $(addsuffix .exp,$(LIBS))
- rm -rf $(addsuffix .lib,$(LIBS))
- rm -rf build-dll
+ $(RM) $(addsuffix .dll,$(LIBS))
+ $(RM) $(addsuffix .def,$(LIBS))
+ $(RM) $(addsuffix .exp,$(LIBS))
+ $(RM) $(addsuffix .lib,$(LIBS))
+ $(RM) build-dll