hamcrest-erlang icon indicating copy to clipboard operation
hamcrest-erlang copied to clipboard

fetch a specific version of rebar in the makefile

Open hyperthunk opened this issue 13 years ago • 0 comments

especially useful for travis, where we do not control the version of rebar used; works nicely in SysTest:

REBAR=bin/rebar

compile: $(REBAR)
    $(REBAR) get-deps compile -v $(LOGLEVEL)


bin/%:
    mkdir -p deps
    mkdir -p bin
    git clone -b systest https://github.com/$*/$*.git deps/$*
    PATH="bin:${PATH}" $(MAKE) -C deps/$*
    cp deps/$*/$* bin/$*

hyperthunk avatar Nov 09 '12 12:11 hyperthunk