[erlang-questions] Makefile detecting / downloading rebar
Sun Jul 22 13:21:12 CEST 2012
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.
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
> which rebar && ln -sf `which rebar` || true
> test -x ./rebar || (wget
> http://cloud.github.com/downloads/basho/rebar/rebar && chmod u+x
> 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?
> erlang-questions mailing list
More information about the erlang-questions