change download timing

This commit is contained in:
UENISHI Kota 2014-01-18 21:30:02 +09:00
parent 5d297d818c
commit ad06d41a05
2 changed files with 10 additions and 4 deletions

View File

@ -15,7 +15,6 @@ console: compile
deps:
@$(REBAR) update-deps get-deps
-wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.8/msgpack-0.5.8.tar.gz -P c_src
compile:
@$(REBAR) compile

View File

@ -1,8 +1,15 @@
#!/bin/sh
if ! test -f c_src/msgpack-0.5.8/src/.libs/libmsgpack.a ; then
tar xzf c_src/msgpack-0.5.8.tar.gz -C c_src
cd c_src/msgpack-0.5.8
MSGPACK_VERSION=0.5.8
MSGPACK_TARBALL=msgpack-$MSGPACK_VERSION.tar.gz
if ! test -f c_src/$MSGPACK_TARBALL ; then
wget https://github.com/msgpack/msgpack-c/releases/download/cpp-0.5.8/msgpack-0.5.8.tar.gz -P c_src
fi
if ! test -f c_src/$MSGPACK_TARBALL/src/.libs/libmsgpack.a ; then
tar xzf c_src/$MSGPACK_TARBALL -C c_src
cd c_src/msgpack-$MSGPACK_VERSION
./configure
make
fi