diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2014-06-30 17:53:10 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2014-06-30 17:57:24 +0200 |
commit | d30c500b962c5b5c74c4492a7db4171869d6505a (patch) | |
tree | 61de2e00b94ef828ab52135dbdbf122e8d5cb46e | |
parent | 5877f7b5c077df92983553d455318b26096e8bf0 (diff) | |
download | rockbox-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/Makefile | 16 |
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 | ||
21 | ifeq ($(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. | ||
23 | ifneq ($(OS),Windows_NT) | ||
22 | PWD=$(shell pwd) | 24 | PWD=$(shell pwd) |
25 | RM=rm -rf | ||
23 | all: dll | 26 | all: dll |
24 | else | 27 | else |
25 | PWD=$(abspath $(TOP)) | 28 | PWD=$(abspath $(TOP)) |
29 | RM=del /q /f | ||
26 | all: lib | 30 | all: lib |
27 | endif | 31 | endif |
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 | ||
52 | clean: | 56 | clean: |
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 |