diff --git a/Makefile.include b/Makefile.include index e113b6a8f42dfb0eedd3918bd4a0045830c1b2a9..c1988d4f8bbaf7ff516c2f7f842d5021d41adabf 100644 --- a/Makefile.include +++ b/Makefile.include @@ -131,9 +131,9 @@ $(RIOTBASE)/pkg/%/Makefile.include:: $(AD)"$(MAKE)" -C $(RIOTBASE)/pkg/$* Makefile.include .PHONY: $(USEPKG:%=$(RIOTBASE)/pkg/%/Makefile.include) - -include $(USEPKG:%=$(RIOTBASE)/pkg/%/Makefile.include) +.PHONY: $(USEPKG:%=${BINDIR}%.a) $(USEPKG:%=${BINDIR}%.a): @mkdir -p ${BINDIR} "$(MAKE)" -C $(RIOTBASE)/pkg/$(patsubst ${BINDIR}%.a,%,$@)