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:
|
||||
wget "https://data.iana.org/time-zones/tzdata-latest.tar.gz"
|
||||
mkdir -p priv/tzdata
|
||||
tar -xvzf tzdata-latest.tar.gz -C priv/tzdata
|
||||
rm tzdata-latest.tar.gz
|
||||
erl -pa ebin -s ezic_generator generate -s erlang halt -noinput -noshell
|
||||
erlc -o ebin zones/*.erl
|
||||
erl -pa ${EBIN} -s ezic_generator generate -s erlang halt -noinput -noshell
|
||||
erlc -o ${EBIN} zones/*.erl
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{application,ezic,
|
||||
[{registered,[]},
|
||||
{vsn,"0.2.2"},
|
||||
{vsn,"0.2.3"},
|
||||
{description,"A set of Erlang utilities for the Olson timezone database files"},
|
||||
{applications,[kernel,stdlib]},
|
||||
{env,[{tzdata_dir,"priv/tzdata"}]},
|
||||
|
||||
Reference in New Issue
Block a user