diff --git a/Makefile.include b/Makefile.include index fc209e41f..98b943084 100644 --- a/Makefile.include +++ b/Makefile.include @@ -125,7 +125,7 @@ $(BINDIR)$(PROJECT)/%.o: %.c $(PROJDEPS) $(USEPKG:%=${BINDIR}%.a) $(AD)mkdir -p "$(dir $@)" $(AD)$(CC) $(CFLAGS) $(INCLUDES) -c "$<" -o "$@" -$(USEPKG:%=${BINDIR}%.a):: +$(USEPKG:%=${BINDIR}%.a): @mkdir -p ${BINDIR} "$(MAKE)" -C $(RIOTBASE)/pkg/$(patsubst ${BINDIR}%.a,%,$@) diff --git a/pkg/tlsf/Makefile b/pkg/tlsf/Makefile index 7ea14d4ea..c9f83c94c 100644 --- a/pkg/tlsf/Makefile +++ b/pkg/tlsf/Makefile @@ -15,7 +15,7 @@ ifeq (, $(UNZIP)) endif endif -.PHONY: all clean patch reset +.PHONY: all clean distclean all: $(BINDIR)$(PKG_NAME).a