mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-08 23:18:13 -07:00
Add Makefile.
This commit is contained in:
parent
805c26f53f
commit
ebe49d470c
2 changed files with 24 additions and 10 deletions
23
Makefile
Normal file
23
Makefile
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue