Packages
A few sentences (a paragraph) describing the project.
Current section
Files
Jump to
Current section
Files
lib/mix/tasks/gen_makefile.ex
defmodule Mix.Tasks.Aws.Gen.Makefile do
@moduledoc """
Generate a Makefile for the AWS Lambda runtime.
"""
use Mix.Task
@shortdoc "Generate a Makefile for the project"
def run(args \\ [])
def run(["help"]) do
"""
Generate a Makefile for the project.
"""
end
def run(_args) do
# name =
# Mix.Project.config()
# |> Keyword.fetch!(:app)
# |> to_string
# {opts, _, _} =
# OptionParser.parse(args,
# aliases: [
# ],
# strict: []
# )
path = Application.app_dir(:aws_runtime, "priv/templates")
Mix.Generator.copy_template(Path.join(path, "makefile.eex"), "Makefile", [])
end
end