processone / eimp

Erlang Image Manipulation Process
Apache License 2.0
48 stars 20 forks source link

How to add rebar3 pre-hook to run configure script before compilation? #11

Closed AndriiKlymchuk closed 4 years ago

AndriiKlymchuk commented 5 years ago

Hi. My rebar3 project uses eimp as dependency. I tried to add {pre_hooks, [{compile, "sh ${REBAR_DEPS_DIR}/eimp/configure"}]}. to my rebar.config in order to run configure script before eimp compilation, but rebar3 run this hook after all deps compilation and before main application compilation. How can I add the hook in my rebar.config so that it will be called before eimp compilation?

weiss commented 4 years ago

As per the rebar3 documentation (but I didn't test myself):

{overrides, [{add, eimp, [{pre_hooks, [{compile, "[...]"}]}]}]}.