-
Notifications
You must be signed in to change notification settings - Fork 978
/
Makefile
47 lines (37 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
GOROOT=$(shell go env GOROOT)
all: package
ceph: libjfs-ceph
mvn package -B -Dmaven.test.skip=true
libjfs-ceph: ../../pkg/*/*.go libjfs/*.go
make -C libjfs ceph
libjfs/libjfs: ../../pkg/*/*.go libjfs/*.go
make -C libjfs
compile:
mvn compile -B --quiet
test: libjfs
mvn test -B --quiet
package: libjfs/libjfs
mvn package -B -Dmaven.test.skip=true
win: win-package package
win-package: ../../pkg/*/*.go libjfs/*.go
make -C libjfs win
package-all: libjfs-all
mvn clean package -B -Dmaven.test.skip=true
libjfs-all: libjfs.so
docker run --rm \
-v ~/go/pkg/mod:/go/pkg/mod \
-v ~/work/juicefs/juicefs:/go/src/github.com/juicedata/juicefs \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/juicedata/juicefs/sdk/java/libjfs \
--entrypoint=/bin/bash \
juicedata/golang-cross:latest \
-c 'make mac win linux-arm64 mac-arm64'
libjfs.so:
docker run --rm \
-v ~/go/pkg/mod:/go/pkg/mod \
-v $(GOROOT):/go \
-v ~/work/juicefs/juicefs:/go/src/github.com/juicedata/juicefs \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/juicedata/juicefs/sdk/java/libjfs \
juicedata/sdk-builder \
/bin/bash -c 'make'