diff --git a/pkg/oonf_api/Makefile b/pkg/oonf_api/Makefile index 42944c564293..316b48cd88a6 100644 --- a/pkg/oonf_api/Makefile +++ b/pkg/oonf_api/Makefile @@ -24,7 +24,7 @@ patch: $(CURDIR)/$(PKG_NAME)/Makefile $(CURDIR)/$(PKG_NAME)/Makefile: $(CURDIR)/$(PKG_NAME) $(foreach patch,$(shell ls [0-9][0-9][0-9][0-9]*.patch),cd "$<" && git am "../$(patch)";) -$(CURDIR)/$(PKG_NAME)/: +$(CURDIR)/$(PKG_NAME): git clone $(PKG_URL) $@ && \ cd $@ && git reset --hard $(PKG_VERSION)