Packages

A semi-useful tool to generate boilerplate when you want to use a NIF in your project. You don't really want to use a NIF in your project, until you do. Then this might save you writing most of the boilerplate.

Current section

Files

Jump to
nifty lib mix tasks compile.make.ex
Raw

lib/mix/tasks/compile.make.ex

defmodule Mix.Tasks.Compile.Make do
@shortdoc "Runs make to execute the Makefile in the current directory"
@doc """
Executes the default make task in the Makefile present in the
current directory
"""
def run(_) do
{result, _error_code} = System.cmd("make", [], stderr_to_stdout: true)
Mix.shell.info result
:ok
end
end