Skip to content

Commit fbccf8d

Browse files
committed
Force shell use when in bash/sh mode
1 parent c2d6686 commit fbccf8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/export/gcc_arm_common.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# cross-platform directory manipulation
55
ifeq ($(shell echo $$OS),$$OS)
66
MAKEDIR = if not exist "$(1)" mkdir "$(1)"
7-
RM = rmdir /S /Q
7+
RM = rmdir /S /Q "$(1)"
88
else
9-
MAKEDIR = mkdir -p $(1)
10-
RM = rm -rf
9+
MAKEDIR = $(SHELL) -c "mkdir -p $(1)"
10+
RM = $(SHELL) -c "rm -rf $(1)"
1111
endif
1212

1313
ifeq (,$(filter .build,$(notdir $(CURDIR))))
@@ -24,7 +24,7 @@ $(OBJDIR): all
2424
Makefile : ;
2525
% :: $(OBJDIR) ; :
2626
clean :
27-
$(RM) $(OBJDIR)
27+
$(call RM,$(OBJDIR))
2828
{% block target_clean -%}
2929
{% endblock %}
3030
else

0 commit comments

Comments
 (0)