gip 0.2.1

A library and command-line frontend to check global IP address
Documentation
VERSION = $(patsubst "%",%, $(word 3, $(shell grep version Cargo.toml)))
BUILD_TIME = $(shell date +"%Y/%m/%d %H:%M:%S")
GIT_REVISION = $(shell git log -1 --format="%h")

export BUILD_TIME
export GIT_REVISION

.PHONY: all doc test clean release_lnx32 release_lnx64 release_osx32 release_osx64

all: test

doc:
	cargo doc --no-deps

test:
	cargo test -- --nocapture

clean:
	cargo clean

release_lnx32:
	cargo build --release --target=i686-unknown-linux-musl
	zip -j gip-v${VERSION}-i686-lnx.zip target/i686-unknown-linux-musl/release/gip

release_lnx64:
	cargo build --release --target=x86_64-unknown-linux-musl
	zip -j gip-v${VERSION}-x86_64-lnx.zip target/x86_64-unknown-linux-musl/release/gip

release_osx32:
	cargo build --release --target=i686-apple-darwin
	zip -j gip-v${VERSION}-i686-osx.zip target/i686-apple-darwin/release/gip

release_osx64:
	cargo build --release --target=x86_64-apple-darwin
	zip -j gip-v${VERSION}-x86_64-osx.zip target/x86_64-apple-darwin/release/gip