[erlang-questions] Makefile detecting / downloading rebar
Dmitry Kolesnikov
dmkolesnikov@REDACTED
Sun Jul 22 13:21:12 CEST 2012
Hello,
Yes, I am using same approach with an exception I am ignoring a global rebar installation.
just keep in mind that wget might not be present. It should be possible to choose between curl & wget. I believe distclean target should also remove downloaded rebar.
- Dmitry
On Jul 22, 2012, at 2:08 PM, Gleb Peregud wrote:
> Hello all
>
> Just an idea. Do you think this is a good approach to put the
> following into a makefile of an open source library?
>
> all: rebar
> ./rebar compile
>
> rebar:
> which rebar && ln -sf `which rebar` || true
> test -x ./rebar || (wget
> http://cloud.github.com/downloads/basho/rebar/rebar && chmod u+x
> rebar)
>
> This allows user who has rebar installed globally to still use it, but
> for users who prefer local rebar binaries to download it
> automatically. Can this script be improved?
>
> Cheers,
> Gleb
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list