File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
- BUILDDIR =/tmp
2
- WORKDIR =github.com/harukasan/go-libwebp
3
- CURDIR =$(shell pwd)
1
+ repo =github.com/harukasan/go-libwebp
2
+ build_dir =/tmp
3
+ cur_dir =$(shell pwd)
4
+ libwebp_so = ${LIBWEBP_PREFIX}/lib/libwebp.so
4
5
5
6
all : test
6
7
7
8
test :
8
- go test -v ${WORKDIR} /...
9
-
10
- libwebp :
11
- test -e ${LIBWEBP_PREFIX} /lib/libwebp.so || ( \
12
- cd ${BUILDDIR} \
13
- && wget http://downloads.webmproject.org/releases/webp/libwebp- ${LIBWEBP_VERSION} .tar.gz \
14
- && tar xf libwebp-${LIBWEBP_VERSION} .tar.gz \
15
- && cd libwebp-${LIBWEBP_VERSION} \
16
- && ./configure --prefix= ${LIBWEBP_PREFIX } \
17
- && make \
18
- && make install \
19
- )
9
+ go test -v $( repo ) /...
10
+
11
+ libwebp : $( libwebp_so )
12
+
13
+ $( libwebp_so ) :
14
+ cd $( build_dir ) \
15
+ && wget http://downloads.webmproject.org/releases/webp/ libwebp-${LIBWEBP_VERSION} .tar.gz \
16
+ && tar xf libwebp-${LIBWEBP_VERSION} .tar.gz \
17
+ && cd libwebp- ${LIBWEBP_VERSION } \
18
+ && ./configure --prefix= ${LIBWEBP_PREFIX} \
19
+ && make \
20
+ && make install
20
21
21
22
docker-test :
22
- docker run -v ${CURDIR} :/go/src/github.com/harukasan/go-libwebp -it go-libwebp
23
+ docker run -v $( cur_dir ) :/go/src/$( repo ) -it go-libwebp
23
24
24
25
docker-sh :
25
- docker run -v ${CURDIR} :/go/src/github.com/harukasan/go-libwebp -it go-libwebp sh
26
+ docker run -v $( cur_dir ) :/go/src/$( repo ) -it go-libwebp sh
26
27
27
28
docker-build :
28
29
docker build -t go-libwebp .
29
30
30
-
31
31
.PHONY : \
32
32
all \
33
33
test \
You can’t perform that action at this time.
0 commit comments