0.2.3 improve Makefile for building better for Elixir and Erlang
This commit is contained in:
11
Makefile
11
Makefile
@@ -1,8 +1,15 @@
|
|||||||
|
ifdef REBAR_BARE_COMPILER_OUTPUT_DIR
|
||||||
|
EBIN = ${REBAR_BARE_COMPILER_OUTPUT_DIR}/ebin
|
||||||
|
else ifdef REBAR_BUILD_DIR
|
||||||
|
EBIN = ${REBAR_BUILD_DIR}/lib/ezic/ebin
|
||||||
|
else
|
||||||
|
EBIN = "ebin"
|
||||||
|
endif
|
||||||
|
|
||||||
zones:
|
zones:
|
||||||
wget "https://data.iana.org/time-zones/tzdata-latest.tar.gz"
|
wget "https://data.iana.org/time-zones/tzdata-latest.tar.gz"
|
||||||
mkdir -p priv/tzdata
|
mkdir -p priv/tzdata
|
||||||
tar -xvzf tzdata-latest.tar.gz -C priv/tzdata
|
tar -xvzf tzdata-latest.tar.gz -C priv/tzdata
|
||||||
rm tzdata-latest.tar.gz
|
rm tzdata-latest.tar.gz
|
||||||
erl -pa ebin -s ezic_generator generate -s erlang halt -noinput -noshell
|
erl -pa ${EBIN} -s ezic_generator generate -s erlang halt -noinput -noshell
|
||||||
erlc -o ebin zones/*.erl
|
erlc -o ${EBIN} zones/*.erl
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{application,ezic,
|
{application,ezic,
|
||||||
[{registered,[]},
|
[{registered,[]},
|
||||||
{vsn,"0.2.2"},
|
{vsn,"0.2.3"},
|
||||||
{description,"A set of Erlang utilities for the Olson timezone database files"},
|
{description,"A set of Erlang utilities for the Olson timezone database files"},
|
||||||
{applications,[kernel,stdlib]},
|
{applications,[kernel,stdlib]},
|
||||||
{env,[{tzdata_dir,"priv/tzdata"}]},
|
{env,[{tzdata_dir,"priv/tzdata"}]},
|
||||||
|
|||||||
Reference in New Issue
Block a user