summaryrefslogtreecommitdiff
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-d30c500b962c5b5c74c4492a7db4171869d6505a.tar.gz
rockbox-d30c500b962c5b5c74c4492a7db4171869d6505a.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 \
18 mkamsboot mkimxboot mkmpioboot mktccboot \ 18 mkamsboot mkimxboot mkmpioboot mktccboot \
19 ucl rbspeex 19 ucl rbspeex
20 20
21ifeq ($(findstring Linux,$(shell uname)),Linux) 21# on Windows uname is not available. However, the environment variable OS holds
22# Windows_NT so check that instead.
23ifneq ($(OS),Windows_NT)
22PWD=$(shell pwd) 24PWD=$(shell pwd)
25RM=rm -rf
23all: dll 26all: dll
24else 27else
25PWD=$(abspath $(TOP)) 28PWD=$(abspath $(TOP))
29RM=del /q /f
26all: lib 30all: lib
27endif 31endif
28 32
@@ -50,8 +54,8 @@ lib: $(addsuffix .lib,$(LIBS))
50 @lib /machine:x86 /nologo /def:$(basename $<).def 54 @lib /machine:x86 /nologo /def:$(basename $<).def
51 55
52clean: 56clean:
53 rm -rf $(addsuffix .dll,$(LIBS)) 57 $(RM) $(addsuffix .dll,$(LIBS))
54 rm -rf $(addsuffix .def,$(LIBS)) 58 $(RM) $(addsuffix .def,$(LIBS))
55 rm -rf $(addsuffix .exp,$(LIBS)) 59 $(RM) $(addsuffix .exp,$(LIBS))
56 rm -rf $(addsuffix .lib,$(LIBS)) 60 $(RM) $(addsuffix .lib,$(LIBS))
57 rm -rf build-dll 61 $(RM) build-dll