<tt>
<html><br>
<head><br>
<meta content="text/html; charset=ISO-8859-1"<br>
http-equiv="Content-Type"><br>
</head><br>
<body text="#000000" bgcolor="#FFFFFF"><br>
<div class="moz-cite-prefix">Why not use Erlang for downloading?<br>
Surely if erlang.mk is a tool for Erlang then it will be very<br>
likely installed. For example this target downloads Rebar:<br><br>
<br><br>
<pre style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 0px; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="line" id="LC5" style="padding-left: 10px;"># Erlang Rebar downloading, see:</div><div class="line" id="LC6" style="padding-left: 10px;"># <a class="moz-txt-link-freetext" href="https://groups.google.com/forum/?fromgroups=#!topic/erlang-programming/U0JJ3SeUv5Y">https://groups.google.com/forum/?fromgroups=#!topic/erlang-programming/U0JJ3SeUv5Y</a></div><div class="line" id="LC7" style="padding-left: 10px;">rb_rebar_url=<a class="moz-txt-link-freetext" href="http://cloud.github.com/downloads/basho/rebar/rebar">http://cloud.github.com/downloads/basho/rebar/rebar</a></div><div cl<br>
ass="line" id="LC8" style="padding-left: 10px;"><br>
</div><div class="line" id="LC9" style="padding-left: 10px;">./rebar:</div><div class="line" id="LC10" style="padding-left: 10px;"> $(ERL) -noshell -s inets -s ssl \</div><div class="line" id="LC11" style="padding-left: 10px;"> -eval 'httpc:request(get, {"$(rb_rebar_url)", []}, [], [{stream, "./rebar"}])' \</div><div class="line" id="LC12" style="padding-left: 10px;"> -s init stop</div><div class="line" id="LC13" style="padding-left: 10px;"> chmod +x ./rebar</div><div class="line" id="LC14" style="padding-left: 10px;"><br>
</div><div class="line" id="LC15" style="padding-left: 10px;">REBAR=$(shell (type rebar 2>/dev/null || echo ./rebar) | tail -1 | awk '{ print $$NF }')</div></pre><br>
<br><br>
It could be used to download anything, not just REBAR.<br><br>
<br><br>
- Greg<br><br>
<br><br>
<br><br>
On 16/08/2013 15:34, Loïc Hoguin wrote:<br><br>
</div><br>
<blockquote cite="mid:[email protected]" type="cite">On<br>
08/16/2013 10:39 AM, Benoit Chesneau wrote:<br>
<br><br>
<blockquote type="cite">The big problem with erlang.mk<br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is requiring to have<br>
<br><br>
gmake and more importantly wget installed imo.<br>
<br><br>
</blockquote><br>
<br><br>
wget is only used for fetching the package index file. I'm sure if<br>
it doesn't work somewhere it'll be patched eventually.<br>
<br><br>
<br><br>
<blockquote type="cite">Which makes it quite annoying to<br>
distribute on systems that have none of<br>
<br><br>
them. It would be interrestin to have the support for curl for<br>
example.<br>
<br><br>
Also what are the makefile extensions that you really need to<br>
require gmake?<br>
<br><br>
</blockquote><br>
<br><br>
No idea. Patches are welcome for compatibility with different<br>
OS/build tools (as long as it's not "rewrite the whole file" of<br>
course, then you're better off just using gmake).<br>
<br><br>
<br><br>
<blockquote type="cite">- benoit<br>
<br><br>
<br><br>
<br><br>
On Thu, Aug 15, 2013 at 4:19 PM, Loïc Hoguin<br>
<<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><mailto:[email protected]></a>> wrote:<br>
<br><br>
<br><br>
Hello friendly people,<br>
<br><br>
<br><br>
I would like to make an official announcement of erlang.mk<br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> now that all the features I wanted<br>
are in.<br>
<br><br>
<br><br>
erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is a rebar replacement.<br>
It was<br>
<br><br>
initially created for allowing a faster development process<br>
than<br>
<br><br>
rebar and for better compatibility with Linux build tools.<br>
It should<br>
<br><br>
work on Linux and OSX with GNU Make installed.<br>
<br><br>
<br><br>
Projects using erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> are still<br>
compatible<br>
<br><br>
with rebar. Dependencies fetched by rebar are stored in the<br>
same<br>
<br><br>
deps/ directory, and projects using erlang.mk<br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> can<br>
<br><br>
still be used as rebar dependencies, with or without a<br>
rebar.config<br>
<br><br>
file.<br>
<br><br>
<br><br>
erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> also features a simple<br>
package index.<br>
<br><br>
Try `make pkg-list` to list all packages currently<br>
available. All<br>
<br><br>
the packages listed are compatible with erlang.mk<br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a><br>
<br><br>
with no tweaking required.<br>
<br><br>
<br><br>
Makefiles written with erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a><br>
are *VERY*<br>
<br><br>
simple, here are two examples:<br>
<br><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/extend/__farwest/blob/master/Makefile">https://github.com/extend/__farwest/blob/master/Makefile</a><br>
<br><br>
<br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/extend/farwest/blob/master/Makefile"><https://github.com/extend/farwest/blob/master/Makefile></a><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/extend/__cowboy/blob/master/Makefile">https://github.com/extend/__cowboy/blob/master/Makefile</a><br>
<br><br>
<br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/extend/cowboy/blob/master/Makefile"><https://github.com/extend/cowboy/blob/master/Makefile></a><br>
<br><br>
<br><br>
I wrote about erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> and relx<br>
recently on the<br>
<br><br>
Nine Nines blog. erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is the<br>
perfect<br>
<br><br>
companion to relx.<br>
<br><br>
<br><br>
* <a class="moz-txt-link-freetext" href="http://ninenines.eu/articles/__erlang.mk-and-relx">http://ninenines.eu/articles/__erlang.mk-and-relx</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="http://ninenines.eu/articles/erlang.mk-and-relx"><http://ninenines.eu/articles/erlang.mk-and-relx></a><br>
<br><br>
<br><br>
Here are examples of projects that are using and compatible<br>
with<br>
<br><br>
erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a>:<br>
<br><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/jlouis/__etorrent">https://github.com/jlouis/__etorrent</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/jlouis/etorrent"><https://github.com/jlouis/etorrent></a><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/extend/__cowboy">https://github.com/extend/__cowboy</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/extend/cowboy"><https://github.com/extend/cowboy></a><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/extend/__farwest">https://github.com/extend/__farwest</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/extend/farwest"><https://github.com/extend/farwest></a><br>
<br><br>
<br><br>
You can find erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> at the<br>
following URL:<br>
<br><br>
<br><br>
* <a class="moz-txt-link-freetext" href="https://github.com/extend/__erlang.mk">https://github.com/extend/__erlang.mk</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="https://github.com/extend/erlang.mk"><https://github.com/extend/erlang.mk></a><br>
<br><br>
<br><br>
Contributions to the package index are of course welcome!<br>
The only<br>
<br><br>
requirement is that the package is to be compatible with<br>
erlang.mk<br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> itself. Just send a PR to the<br>
erlang.mk<br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> project updating the<br>
packages.v1.txt!<br>
<br><br>
<br><br>
Enjoy!<br>
<br><br>
<br><br>
--<br>
<br><br>
Loïc Hoguin<br>
<br><br>
Erlang Cowboy<br>
<br><br>
Nine Nines<br>
<br><br>
<a class="moz-txt-link-freetext" href="http://ninenines.eu">http://ninenines.eu</a><br>
<br><br>
_________________________________________________<br>
<br><br>
erlang-questions mailing list<br>
<br><br>
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><mailto:[email protected]></a><br>
<br><br>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/__listinfo/erlang-questions">http://erlang.org/mailman/__listinfo/erlang-questions</a><br>
<br><br>
<a class="moz-txt-link-rfc2396E" href="http://erlang.org/mailman/listinfo/erlang-questions"><http://erlang.org/mailman/listinfo/erlang-questions></a><br>
<br><br>
<br><br>
<br><br>
</blockquote><br>
<br><br>
<br><br>
</blockquote><br>
<br><br>
</body><br>
</html><br>
</tt>