diff --git a/native/Makefile b/native/Makefile index da7907f159..86ddb4a6ff 100644 --- a/native/Makefile +++ b/native/Makefile @@ -16,7 +16,7 @@ $(BINDIR)native_base.a: $(OBJ) # compile and generate dependency info $(BINDIR)%.o: %.c - -mkdir $(BINDIR) + -mkdir -p $(BINDIR) $(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o $(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d @printf "$(BINDIR)"|cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d @@ -24,5 +24,5 @@ $(BINDIR)%.o: %.c # remove compilation products clean: rm -f $(BINDIR)native_base.a $(OBJ) $(DEP) - -rmdir $(BINDIR) + -rmdir -p $(BINDIR)