Skip to content

Commit 3850c26

Browse files
committed
Force all to be the default target
1 parent 6c1c7a5 commit 3850c26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/export/gcc_arm_common.tmpl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ endif
1313
ifeq (,$(filter .build,$(notdir $(CURDIR))))
1414
.SUFFIXES:
1515
OBJDIR := .build
16-
MAKETARGET = $(MAKE) --no-print-directory -C $@ -f $(CURDIR)/Makefile \
16+
MAKETARGET = $(MAKE) --no-print-directory -C $(OBJDIR) -f $(CURDIR)/Makefile \
1717
SRCDIR=$(CURDIR) $(MAKECMDGOALS)
1818
.PHONY: $(OBJDIR) clean
19-
$(OBJDIR):
20-
+@$(call MAKEDIR,$@)
19+
all:
20+
+@$(call MAKEDIR,$(OBJDIR))
2121
+@$(MAKETARGET)
22+
$(OBJDIR): all
2223
Makefile : ;
2324
% :: $(OBJDIR) ; :
2425
clean :

0 commit comments

Comments
 (0)