plugins.mk 440 B

1234567891011121314151617
  1. # Copyright (c) 2013-2017, Loïc Hoguin <essen@ninenines.eu>
  2. # This file is part of erlang.mk and subject to the terms of the ISC License.
  3. # External plugins.
  4. DEP_PLUGINS ?=
  5. define core_dep_plugin
  6. -include $(DEPS_DIR)/$(1)
  7. $(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ;
  8. endef
  9. $(foreach p,$(DEP_PLUGINS),\
  10. $(eval $(if $(findstring /,$p),\
  11. $(call core_dep_plugin,$p,$(firstword $(subst /, ,$p))),\
  12. $(call core_dep_plugin,$p/plugins.mk,$p))))