Closed dumbbell closed 4 years ago
Looking at this target, I am wondering whether we should leverage query-deps
instead: https://github.com/ninenines/erlang.mk/pull/875 . The current rmq-deps.mk
implementation looks closer to query-deps
than this starting point: https://github.com/rabbitmq/rabbitmq-common/blob/a69166ec023bbbcaf027b01c511f276cf557a9eb/mk/rabbitmq-tools.mk#L39-L43
If we use query-deps
, we still have to filter the output (to only keep RabbitMQ components) and format the output (if we want to produce a Makefile).
In which case let's just stick with this make target not use query-deps
for this purpose.
If we use
query-deps
, we still have to filter the output (to only keep RabbitMQ components) and format the output (if we want to produce a Makefile).
It generates a file called
$(PROJECT)-rabbitmq-deps.mk
which has a dependency definition line of the form expected by Erlang.mk, for each RabbitMQ component the project depends on.Therefore the line indicates:
git
as the fetch methodHere is an example for rabbitmq-server: