Add Emakefile to init app|lib
This commit is contained in:
parent
4c14806f36
commit
948040cdcd
@ -105,6 +105,15 @@ initialize(Type, PackageID, Prefix, AppStart) ->
|
||||
{appmod, AppStart}],
|
||||
Meta = maps:from_list(MetaList),
|
||||
ok = zx_lib:write_project_meta(Meta),
|
||||
ok =
|
||||
case filelib:is_regular("Emakefile") of
|
||||
true ->
|
||||
ok;
|
||||
false ->
|
||||
EM = [{"src/*", [debug_info, {i, "include/"}, {outdir, "ebin/"}]},
|
||||
{"test/*", [debug_info, {i, "include/"}, {outdir, "ebin/"}]}],
|
||||
zx_lib:write_terms("Emakefile", EM)
|
||||
end,
|
||||
{ok, PackageString} = zx_lib:package_string(PackageID),
|
||||
ok = log(info, "Project ~tp initialized.", [PackageString]),
|
||||
Message =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user