ninenines / erlang.mk

A build tool for Erlang that just works.
https://erlang.mk
ISC License
578 stars 241 forks source link

example to run escript ininside a makefile #998

Closed benoitc closed 4 months ago

benoitc commented 4 months ago

Do you have an example on how to create an escript directly embedded in a makefile? How to point to it some dependencies and other stuffs?

essen commented 4 months ago

Not an escript per se but for embedding Erlang and using deps the following file is a good example: https://github.com/ninenines/erlang.mk/blob/master/plugins/proper.mk#L49

This uses code:addpath but alternatively you can specify flags when calling $(erlang...): https://github.com/ninenines/erlang.mk/blob/master/plugins/erlydtl.mk#L59-L60

benoitc commented 4 months ago

thanks! this is very helpful :)