<div dir="ltr">What is the idiomatic <a href="http://erlang.mk">erlang.mk</a> way to replace rebar's platform_define feature?<div><br></div><div>I have code running on different Erlang versions which cross the deprecation boundary for crypto functions, and I'd like my code to adapt appropriately.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 11:07 PM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
<a href="http://erlang.mk" target="_blank">erlang.mk</a> 1.0 has been released.<br>
<br>
<a href="http://erlang.mk" target="_blank">erlang.mk</a> is a GNU Make based build system with bootstrap and package index features that make life so much better.<br>
<br>
  <a href="https://github.com/ninenines/erlang.mk" target="_blank">https://github.com/ninenines/<u></u>erlang.mk</a><br>
<br>
Going from 0 to release is a 5 steps process with <a href="http://erlang.mk" target="_blank">erlang.mk</a>.<br>
<br>
 *  # Create a directory for your application<br>
 *  # Download <a href="http://erlang.mk" target="_blank">erlang.mk</a> into that directory<br>
 *  make -f <a href="http://erlang.mk" target="_blank">erlang.mk</a> bootstrap bootstrap-rel<br>
 *  make<br>
 *  ./_rel/your_release/bin/your_<u></u>release console<br>
<br>
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 again:<br>
<br>
 *  DEPS = cowboy<br>
<br>
That's really it!<br>
<br>
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 <a href="http://erlang.mk" target="_blank">erlang.mk</a> so you can update at your own pace.<br>

<br>
Don't forget to add your Make-powered projects to the package index file and send a PR to make everyone's life better!<br>
<br>
Enjoy!<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Christopher Vance
</div>