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 clean.make.ex
Raw

lib/mix/tasks/clean.make.ex

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