-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (28 loc) · 1.25 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
default:
@grep '^[^#[:space:].].*:' Makefile
start: go run .
.PHONY=build
build: go build .
release: release_darwin_arm64 release_darwin_arm64 release_linux_amd64 release_linux_arm64
release_linux_amd64:
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o build/tigerbeetle_api_linux_amd64 main.go
release_linux_amd64_cross_compile:
CC="zig cc -target x86_64-linux-musl" CXX="zig c++ -target x86_64-linux-musl" CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o build/tigerbeetle_api_linux_amd64 main.go
release_darwin_arm64:
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o build/tigerbeetle_api_darwin_arm64 main.go
release_linux_arm64_cross_compile:
CC="zig cc -target aarch64-linux" CXX="zig c++ -target aarch64-linux" CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -o build/tigerbeetle_api_linux_arm64 main.go
release_run_darwin_arm64:
./build/tigerbeetle_api_darwin_arm64
release_run_linux_amd64:
./build/tigerbeetle_api_linux_amd64
release_run_linux_arm64:
./build/tigerbeetle_api_linux_arm64
docker_start:
docker compose up -d
docker_stop:
docker compose stop
docker_setup:
docker compose pull && docker compose run tigerbeetle format --cluster=0 --replica=0 --replica-count=1 /data/0_0.tigerbeetle
docker_remove:
docker compose down -v --remove-orphans