<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Why not use Erlang for downloading?
      Surely if erlang.mk is a tool for Erlang then it will be very
      likely installed. For example this target downloads Rebar:<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
ass="line" id="LC8" style="padding-left: 10px;">
</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;">
</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>
      It could be used to download anything, not just REBAR.<br>
      <br>
      - Greg<br>
      <br>
      <br>
      On 16/08/2013 15:34, Loïc Hoguin wrote:<br>
    </div>
    <blockquote cite="mid:520E3890.5020000@ninenines.eu" type="cite">On
      08/16/2013 10:39 AM, Benoit Chesneau wrote:
      <br>
      <blockquote type="cite">The big problem with erlang.mk
        <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is requiring to have
        <br>
        gmake and more importantly wget installed imo.
        <br>
      </blockquote>
      <br>
      wget is only used for fetching the package index file. I'm sure if
      it doesn't work somewhere it'll be patched eventually.
      <br>
      <br>
      <blockquote type="cite">Which makes it quite annoying to
        distribute on systems that have none of
        <br>
        them. It would be interrestin to have the support for curl for
        example.
        <br>
        Also what are the makefile extensions that you really need to
        require gmake?
        <br>
      </blockquote>
      <br>
      No idea. Patches are welcome for compatibility with different
      OS/build tools (as long as it's not "rewrite the whole file" of
      course, then you're better off just using gmake).
      <br>
      <br>
      <blockquote type="cite">- benoit
        <br>
        <br>
        <br>
        On Thu, Aug 15, 2013 at 4:19 PM, Loïc Hoguin
        <<a class="moz-txt-link-abbreviated" href="mailto:essen@ninenines.eu">essen@ninenines.eu</a>
        <br>
        <a class="moz-txt-link-rfc2396E" href="mailto:essen@ninenines.eu"><mailto:essen@ninenines.eu></a>> wrote:
        <br>
        <br>
            Hello friendly people,
        <br>
        <br>
            I would like to make an official announcement of erlang.mk
        <br>
            <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> now that all the features I wanted
        are in.
        <br>
        <br>
            erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is a rebar replacement.
        It was
        <br>
            initially created for allowing a faster development process
        than
        <br>
            rebar and for better compatibility with Linux build tools.
        It should
        <br>
            work on Linux and OSX with GNU Make installed.
        <br>
        <br>
            Projects using erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> are still
        compatible
        <br>
            with rebar. Dependencies fetched by rebar are stored in the
        same
        <br>
            deps/ directory, and projects using erlang.mk
        <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> can
        <br>
            still be used as rebar dependencies, with or without a
        rebar.config
        <br>
            file.
        <br>
        <br>
            erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> also features a simple
        package index.
        <br>
            Try `make pkg-list` to list all packages currently
        available. All
        <br>
            the packages listed are compatible with erlang.mk
        <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a>
        <br>
            with no tweaking required.
        <br>
        <br>
            Makefiles written with erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a>
        are *VERY*
        <br>
            simple, here are two examples:
        <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>
           
        <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>
              * <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>
           
        <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>
            I wrote about erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> and relx
        recently on the
        <br>
            Nine Nines blog. erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> is the
        perfect
        <br>
            companion to relx.
        <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>
            <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>
            Here are examples of projects that are using and compatible
        with
        <br>
            erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a>:
        <br>
        <br>
              * <a class="moz-txt-link-freetext" href="https://github.com/jlouis/__etorrent">https://github.com/jlouis/__etorrent</a>
        <br>
            <a class="moz-txt-link-rfc2396E" href="https://github.com/jlouis/etorrent"><https://github.com/jlouis/etorrent></a>
        <br>
              * <a class="moz-txt-link-freetext" href="https://github.com/extend/__cowboy">https://github.com/extend/__cowboy</a>
        <br>
            <a class="moz-txt-link-rfc2396E" href="https://github.com/extend/cowboy"><https://github.com/extend/cowboy></a>
        <br>
              * <a class="moz-txt-link-freetext" href="https://github.com/extend/__farwest">https://github.com/extend/__farwest</a>
        <br>
            <a class="moz-txt-link-rfc2396E" href="https://github.com/extend/farwest"><https://github.com/extend/farwest></a>
        <br>
        <br>
            You can find erlang.mk <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> at the
        following URL:
        <br>
        <br>
              * <a class="moz-txt-link-freetext" href="https://github.com/extend/__erlang.mk">https://github.com/extend/__erlang.mk</a>
        <br>
            <a class="moz-txt-link-rfc2396E" href="https://github.com/extend/erlang.mk"><https://github.com/extend/erlang.mk></a>
        <br>
        <br>
            Contributions to the package index are of course welcome!
        The only
        <br>
            requirement is that the package is to be compatible with
        erlang.mk
        <br>
            <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> itself. Just send a PR to the
        erlang.mk
        <br>
            <a class="moz-txt-link-rfc2396E" href="http://erlang.mk"><http://erlang.mk></a> project updating the
        packages.v1.txt!
        <br>
        <br>
            Enjoy!
        <br>
        <br>
            --
        <br>
            Loïc Hoguin
        <br>
            Erlang Cowboy
        <br>
            Nine Nines
        <br>
            <a class="moz-txt-link-freetext" href="http://ninenines.eu">http://ninenines.eu</a>
        <br>
            _________________________________________________
        <br>
            erlang-questions mailing list
        <br>
            <a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:erlang-questions@erlang.org"><mailto:erlang-questions@erlang.org></a>
        <br>
            <a class="moz-txt-link-freetext" href="http://erlang.org/mailman/__listinfo/erlang-questions">http://erlang.org/mailman/__listinfo/erlang-questions</a>
        <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>
      </blockquote>
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>