Add Makefile.

This commit is contained in:
Shunsuke Michii 2016-06-30 20:06:26 +09:00
parent 805c26f53f
commit ebe49d470c
2 changed files with 24 additions and 10 deletions

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
BUILDDIR=/tmp
WORKDIR=github.com/harukasan/go-libwebp
all: test
test:
go test -v ${WORKDIR}/...
libwebp:
test -e ${LIBWEBP_PREFIX}/lib/libwebp.so || ( \
cd ${BUILDDIR} \
&& wget http://downloads.webmproject.org/releases/webp/libwebp-${LIBWEBP_VERSION}.tar.gz \
&& tar xf libwebp-${LIBWEBP_VERSION}.tar.gz \
&& cd libwebp-${LIBWEBP_VERSION} \
&& ./configure --prefix=${LIBWEBP_PREFIX} \
&& make \
&& make install \
)
.PHONY: \
all \
test