Execute custom commands during compilation

60 views
Skip to first unread message

Alexander Kuleshov

unread,
May 16, 2016, 5:25:21 AM5/16/16
to elixir-lang-talk
Hello,

I want to add tsung (https://github.com/processone/tsung) as dependency. As you may see it is GNU autoconf based. So, I need to execute configure/make/...
to build it. Can I execute this command before compilation to prevent

Could not compile :tsung, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)

error.

Thank you.

José Valim

unread,
May 16, 2016, 7:02:17 AM5/16/16
to elixir-l...@googlegroups.com
You can pass the :compile option to the dependency:

    {:tsung, ..., compile: "autoconf && make"}

And it will run any command you choose to.



José Valim
Skype: jv.ptec
Founder and Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/02a5526d-3ca0-4b67-aed7-187227d24ec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Kuleshov

unread,
May 16, 2016, 7:22:37 AM5/16/16
to elixir-lang-talk, jose....@plataformatec.com.br
Thank you Jose
Reply all
Reply to author
Forward
0 new messages