We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6867499 commit 5d01466Copy full SHA for 5d01466
tools/export/gcc_arm_common.tmpl
@@ -1,10 +1,13 @@
1
# This file was automagically generated by mbed.org. For more information,
2
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
3
4
+# cross-platform directory manipulation
5
ifeq ($(OS),Windows_NT)
- MAKEDIR = IF exists $(1) () ELSE (mkdir $(1))
6
+ MAKEDIR = if not exist "$(1)" mkdir "$(1)"
7
+ RM = rmdir /S /Q
8
else
- MAKEDIR = [ -d $(1) ] || mkdir -p $(1)
9
+ MAKEDIR = mkdir -p $(1)
10
+ RM = rm -rf
11
endif
12
13
ifeq (,$(filter bin,$(notdir $(CURDIR))))
@@ -19,7 +22,7 @@ $(OBJDIR):
19
22
Makefile : ;
20
23
% :: $(OBJDIR) ; :
21
24
clean :
- rm -rf $(OBJDIR)
25
+ $(RM) $(OBJDIR)
26
{% block target_clean -%}
27
{% endblock %}
28
0 commit comments