[erlang-questions] [ANN] erlang.mk 1.0
Sun Aug 3 12:20:45 CEST 2014
I'm not sure what platform_define does exactly, having never used it,
but I suppose you could easily define ERLC_OPTS conditionally based on
the OTP version. The best way to do that would probably be to look
inside the OTP_VERSION file. The hard part would be to figure out how to
do it without a slow VM start I suppose.
That's something that could be added as a plugin once an appropriate way
is figured out.
On 08/03/2014 12:02 PM, Christopher Vance wrote:
> What is the idiomatic erlang.mk <http://erlang.mk> way to replace
> rebar's platform_define feature?
> I have code running on different Erlang versions which cross the
> deprecation boundary for crypto functions, and I'd like my code to adapt
> On Fri, Aug 1, 2014 at 11:07 PM, Loïc Hoguin <
> <mailto:>> wrote:
> erlang.mk <http://erlang.mk> 1.0 has been released.
> erlang.mk <http://erlang.mk> is a GNU Make based build system with
> bootstrap and package index features that make life so much better.
> Going from 0 to release is a 5 steps process with erlang.mk
> * # Create a directory for your application
> * # Download erlang.mk <http://erlang.mk> into that directory
> * make -f erlang.mk <http://erlang.mk> bootstrap bootstrap-rel
> * make
> * ./_rel/your_release/bin/your___release console
> And if you want to use a third party project, like Cowboy, you
> simply need to add this one line to your Makefile and then run make
> * DEPS = cowboy
> That's really it!
> A note for previous users: a few small things changed since the
> previous version. You can take a look at the Cowboy or Ranch
> repositories for details. It's mostly a number of things you don't
> have to do anymore so it's a quick upgrade, just delete a few lines!
> This new version is compatible with projects using an older
> erlang.mk <http://erlang.mk> so you can update at your own pace.
> Don't forget to add your Make-powered projects to the package index
> file and send a PR to make everyone's life better!
> Loïc Hoguin
> erlang-questions mailing list
> Christopher Vance
More information about the erlang-questions