Mix and erlang.mk

Hey folks, I’m trying to build a mixed umbrella project with erlang and elixir projects.

The erlang project in question is: https://github.com/emqtt/emqttd

The error I’m getting when runing mix compile is:

warning: path "apps/emqttd" is a directory but it has no mix.exs. Mix won't consider this directory as part of your umbrella application. Please add a "mix.exs" or set the ":apps" key in your umbrella configuration with all relevant apps names as atoms
===> Compiling emqttd
===> Compiling src/lager_emqtt_backend.erl failed
src/lager_emqtt_backend.erl:23: can't find include lib "lager/include/lager.hrl"

** (Mix) Could not compile dependency :emqttd, "/Users/imetallica/.asdf/installs/elixir/1.6.5/.mix/rebar3 bare compile --paths "/Users/imetallica/Documents/Projects/StuffVDT/foobar/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile emqttd", update it with "mix deps.update emqttd" or clean it with "mix deps.clean emqttd"

Is there a way how to use erlang.mk?

1 Like

Figured out, just need to put {:emqttd, in_umbrella: true, manager: :make} on path.

2 Likes