-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (22 loc) · 905 Bytes
/
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
BUILD_DIR?=.build
.PHONY: all build clean
all: clean build
build: build_linux build_macos build_windows
build_linux: build_linux_arm64 build_linux_x86_64
build_linux_arm64:
GOOS=linux GOARCH=arm64 go build -o $(BUILD_DIR)/waldo-agent-linux-arm64
build_linux_x86_64:
GOOS=linux GOARCH=amd64 go build -o $(BUILD_DIR)/waldo-agent-linux-x86_64
build_macos: build_macos_arm64 build_macos_x86_64
build_macos_arm64:
GOOS=darwin GOARCH=arm64 go build -o $(BUILD_DIR)/waldo-agent-macos-arm64
build_macos_x86_64:
GOOS=darwin GOARCH=amd64 go build -o $(BUILD_DIR)/waldo-agent-macos-x86_64
build_windows: build_windows_arm64 build_windows_x86_64
build_windows_arm64:
GOOS=windows GOARCH=arm64 go build -o $(BUILD_DIR)/waldo-agent-windows-arm64.exe
build_windows_x86_64:
GOOS=windows GOARCH=amd64 go build -o $(BUILD_DIR)/waldo-agent-windows-x86_64.exe
clean:
@ go clean -i
@ rm -rfv $(BUILD_DIR)