Skip to content
Snippets Groups Projects
Commit 46deefe0 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

make Makefiles proof for spaces in $PATH

parent 16087902
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,9 @@ endif
## make script for your project. Build RIOT-base here!
all: $(PROJBINDIR)/$(PROJECT).a
@echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(MCU)."
$(MAKE) -C $(RIOTBOARD)
$(MAKE) -C $(RIOTBASE)
@for i in $(EXTERNAL_MODULES) ; do $(MAKE) -C $$i ; done ;
"$(MAKE)" -C $(RIOTBOARD)
"$(MAKE)" -C $(RIOTBASE)
@for i in $(EXTERNAL_MODULES) ; do "$(MAKE)" -C $$i ; done ;
ifeq ($(BUILDOSXNATIVE),1)
@$(LINK) $(UNDEF) -o $(PROJBINDIR)/$(PROJECT).elf $(BASELIBS) $(LINKFLAGS) -Wl,-no_pie
else
......@@ -79,9 +79,9 @@ $(PROJBINDIR)/%.o: %.c $(PROJDEPS)
$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(PROJBINDIR)/$*.o
clean:
$(MAKE) -C $(RIOTBOARD) clean
$(MAKE) -C $(RIOTBASE) clean
@for i in $(EXTERNAL_MODULES) ; do $(MAKE) -C $$i clean ; done ;
"$(MAKE)" -C $(RIOTBOARD) clean
"$(MAKE)" -C $(RIOTBASE) clean
@for i in $(EXTERNAL_MODULES) ; do "$(MAKE)" -C $$i clean ; done ;
rm -rf $(PROJBINDIR)
flash: all
......
......@@ -24,15 +24,14 @@ endif
cpus: $(DIRS)
$(DIRS):
@$(MAKE) -C $@
@"$(MAKE)" -C $@
clean:
@$(MAKE) -C lpc2387 clean
@$(MAKE) -C mc1322x clean
@$(MAKE) -C lpc_common clean
@$(MAKE) -C arm_common clean
@$(MAKE) -C cc430 clean
@$(MAKE) -C msp430-common clean
@$(MAKE) -C msp430x16x clean
@$(MAKE) -C native clean
@"$(MAKE)" -C lpc2387 clean
@"$(MAKE)" -C mc1322x clean
@"$(MAKE)" -C lpc_common clean
@"$(MAKE)" -C arm_common clean
@"$(MAKE)" -C cc430 clean
@"$(MAKE)" -C msp430-common clean
@"$(MAKE)" -C msp430x16x clean
@"$(MAKE)" -C native clean
......@@ -5,10 +5,10 @@ INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include
DIRS =
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -9,10 +9,10 @@ ifneq (,$(findstring mc1322x_asm,$(USEMODULE)))
endif
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -4,10 +4,10 @@ INCLUDES += -Iinclude -I$(RIOTBASE)/core/include/ -I$(RIOTBOARD)/$(BOARD)/includ
DIRS =
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -4,10 +4,10 @@ INCLUDES = -I../include -I$(RIOTBASE)/core/include
DIRS =
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -10,10 +10,10 @@ ifneq (,$(findstring nativenet,$(USEMODULE)))
endif
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -48,4 +48,3 @@ clean::
......@@ -4,10 +4,10 @@ MODULE =at86rf231
DIRS =
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -16,10 +16,10 @@ ifneq (,$(findstring native,$(BOARD)))
endif
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -4,10 +4,10 @@ MODULE =cc2420
DIRS =
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
......@@ -87,11 +87,11 @@ ifneq (,$(findstring hashes,$(USEMODULE)))
endif
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
# remove compilation products
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment