Packages

A set of Erlang utilities for the Olson timezone database files

Current section

Files

Jump to
ezic Makefile
Raw

Makefile

BUILD_PATH ?= "ebin"
all: rebar3
BUILD_PATH=_build/default/lib/ezic/ebin ./rebar3 compile
BUILD_PATH=_build/default/lib/ezic/ebin make zones
clean:
-rm -rf _build zones priv
rebar3:
wget https://s3.amazonaws.com/rebar3/rebar3
chmod +x rebar3
zones: priv/tzdata
erl -pa ${BUILD_PATH} -s ezic_generator generate -s erlang halt -noinput -noshell
erlc -o ${BUILD_PATH} zones/*.erl
priv/tzdata:
wget "http://www.iana.org/time-zones/repository/tzdata-latest.tar.gz"
mkdir -p priv/tzdata
tar -xvzf tzdata-latest.tar.gz -C priv/tzdata
rm tzdata-latest.tar.gz
.PHONY: all