DEPS = cowboy -DEP_PLUGINS = cowboy
From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
For example, if you have cowboy
in DEPS
, add cowboy
in
DEP_PLUGINS
also:
DEPS = cowboy -DEP_PLUGINS = cowboy
This will load the file plugins.mk in the root folder of the Cowboy repository.
DEP_PLUGINS = cowboy/plugins.mk
.
from Cowboy and no other, we would write the following in
our Makefile:
DEPS = cowboy -DEP_PLUGINS = cowboy/mk/dist.mk
THIS := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) -include $(THIS)/mk/dist.mk -include $(THIS)/mk/templates.mk
The THIS
variable is required to relatively include files.
This allows users to not only be able to select individual plugins, but also select all plugins from the dependency -- cgit v1.2.3