Make sure rebar builds sources before trying to build.

This commit is contained in:
Erik Stenman 2019-03-04 10:56:44 +01:00
parent b632927127
commit 1761796663
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,8 @@ REBAR ?= rebar3
all: local all: local
sources: $(GENERATED_SRC)
local: $(GENERATED_SRC) local: $(GENERATED_SRC)
@$(REBAR) as local release @$(REBAR) as local release

View File

@ -12,6 +12,11 @@
{escript_main_app, aebytecode}. {escript_main_app, aebytecode}.
{escript_name, aefateasm}. {escript_name, aefateasm}.
{escript_emu_args, "%%!"}. {escript_emu_args, "%%!"}.
{pre_hooks,
[{"(linux|darwin|solaris)", compile, "make sources"},
{"(freebsd)", compile, "gmake sources"}]}.
{provider_hooks, [{post, [{compile, escriptize}]}]}. {provider_hooks, [{post, [{compile, escriptize}]}]}.