Skip to content
Snippets Groups Projects
Unverified Commit 61f13baf authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

Makefile.include: set pkg-prepare as BUILDDEPS

Use BUILDDEPS to define pkg-prepare dependency
parent 2f41244a
No related branches found
No related tags found
No related merge requests found
...@@ -366,6 +366,7 @@ DIRS += $(EXTERNAL_MODULE_DIRS) ...@@ -366,6 +366,7 @@ DIRS += $(EXTERNAL_MODULE_DIRS)
# Define dependencies required for building (headers, downloading source files,) # Define dependencies required for building (headers, downloading source files,)
BUILDDEPS += $(RIOTBUILD_CONFIG_HEADER_C) BUILDDEPS += $(RIOTBUILD_CONFIG_HEADER_C)
BUILDDEPS += pkg-prepare
BUILDDEPS += $(APPDEPS) BUILDDEPS += $(APPDEPS)
# Save value to verify it is not modified later # Save value to verify it is not modified later
...@@ -429,14 +430,14 @@ endef ...@@ -429,14 +430,14 @@ endef
# The `clean` needs to be serialized before everything else. # The `clean` needs to be serialized before everything else.
ifneq (, $(filter clean, $(MAKECMDGOALS))) ifneq (, $(filter clean, $(MAKECMDGOALS)))
all $(BASELIBS) $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) pkg-prepare $(BUILDDEPS): clean all $(BASELIBS) $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) $(BUILDDEPS): clean
endif endif
.PHONY: pkg-prepare $(USEPKG:%=$(BINDIR)/%.a) .PHONY: pkg-prepare $(USEPKG:%=$(BINDIR)/%.a)
pkg-prepare: pkg-prepare:
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i prepare ; done -@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i prepare ; done
$(USEPKG:%=$(BINDIR)/%.a): pkg-prepare $(BUILDDEPS) $(USEPKG:%=$(BINDIR)/%.a): $(BUILDDEPS)
@mkdir -p $(BINDIR) @mkdir -p $(BINDIR)
$(QQ)"$(MAKE)" -C $(RIOTPKG)/$(patsubst $(BINDIR)/%.a,%,$@) $(QQ)"$(MAKE)" -C $(RIOTPKG)/$(patsubst $(BINDIR)/%.a,%,$@)
......
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