Mix v1.5.1 mix deps.compile View Source
Compiles dependencies.
By default, compile all dependencies. A list of dependencies can be given to compile multiple dependencies in order.
This task attempts to detect if the project contains one of the following files and act accordingly:
mix.exs
- invokesmix compile
rebar.config
- invokesrebar compile
Makefile.win
- invokesnmake /F Makefile.win
(only on Windows)Makefile
- invokesgmake
on FreeBSD and OpenBSD, invokesmake
on any other OS (except on Windows)
The compilation can be customized by passing a compile
option
in the dependency:
{:some_dependency, "0.1.0", compile: "command to compile"}
If a list of dependencies is given, Mix will attempt to compile
them as is. For example, if project a
depends on b
, calling
mix deps.compile a
will compile a
even if b
is out of
date. This is to allow parts of the dependency tree to be
recompiled without propagating those changes upstream. To ensure
b
is included in the compilation step, pass --include-children
.
Link to this section Summary
Link to this section Functions
A task needs to implement run
which receives
a list of command line args.
Callback implementation for Mix.Task.run/1
.