diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk index 44b822e..4ac58ca 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -573,3 +573,18 @@ $(foreach dep,$(DEPS),$(eval $(call dep_target,$(dep)))) distclean-deps: $(gen_verbose) rm -rf $(DEPS_DIR) + +# External plugins. + +DEP_PLUGINS ?= + +define core_dep_plugin +-include $(DEPS_DIR)/$(1) + +$(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ; +endef + +$(foreach p,$(DEP_PLUGINS),\ + $(eval $(if $(findstring /,$p),\ + $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\ + $(call core_dep_plugin,$p/plugins.mk,$p)))) |