qdate_localtime/Makefile
Jesse Gumm 3127dcddfb Dynamically build rebar3 if needed
Also tweaked `tz-erl` with some proposed updates from
https://github.com/choptastic/qdate_localtime/pull/1
2022-12-09 15:13:35 -06:00

24 lines
459 B
Makefile

all: rebar3
./rebar3 compile
check: rebar3
./rebar3 eunit
dialyzer: rebar3
./rebar3 dialyzer
publish: rebar3
./rebar3 hex publish
rebar3:
@(echo "Building rebar3...")
@(rm -fr tmp)
@(mkdir -p tmp)
@(cd tmp && \
git clone https://github.com/erlang/rebar3 && \
cd rebar3 && \
./bootstrap)
@(echo "Moving rebar3 executable locally (NOT installing system-wide)")
@(mv tmp/rebar3/rebar3 .)
@(echo "Cleaning up rebar3 remnants")
@(rm -fr tmp)