Skip to content

[Proposal] Add a feature to put Makefile in Application.app_dir #41

@zacky1972

Description

@zacky1972

Hi,

I propose Add a feature to put Makefile in Application.app_dir(:app, "somewhere") , especially in case that the Makefile is generated by a macro, e.g. in case of Pelemay.

The following error occurs by setting :make_makefile to Applicatoin.app_dir(:app, "somewhere/Makefile") in project in mix.exs:

❯❯❯ mix deps.get
** (ArgumentError) unknown application: :elixir_make_test
    (elixir 1.11.2) lib/application.ex:896: Application.app_dir/1
    (elixir 1.11.2) lib/application.ex:923: Application.app_dir/2
    mix.exs:11: ElixirMakeTest.MixProject.project/0
    (mix 1.11.2) lib/mix/project.ex:790: Mix.Project.get_project_config/1
    (mix 1.11.2) lib/mix/project.ex:114: Mix.Project.push/3
    (stdlib 3.13.2) lists.erl:1267: :lists.foldl/3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions