generated from cyberark/conjur-template
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
44 lines (28 loc) · 1.09 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
.PHONY: all clean linux windows darwin docker docker-release
BUILD_DIR=build
all: linux windows darwin
linux: linux_386 linux_amd64 linux_arm64
linux_386:
GOARCH=386 GOOS=linux go build -v -o $(BUILD_DIR)/kubeletctl_linux_386;
linux_amd64:
GOARCH=amd64 GOOS=linux go build -v -o $(BUILD_DIR)/kubeletctl_linux_amd64;
linux_arm64:
GOARCH=arm64 GOOS=linux go build -v -o $(BUILD_DIR)/kubeletctl_linux_arm64;
windows: windows_386 windows_amd64
windows_386:
GOARCH=386 GOOS=windows go build -v -o $(BUILD_DIR)/kubeletctl_windows_386.exe;
windows_amd64:
GOARCH=amd64 GOOS=windows go build -v -o $(BUILD_DIR)/kubeletctl_windows_amd64.exe;
darwin: darwin_amd64 darwin_arm64
# darwin_386:
# GOARCH=386 GOOS=darwin go build -v -o $(BUILD_DIR)/kubeletctl_darwin_386;
darwin_amd64:
GOARCH=amd64 GOOS=darwin go build -v -o $(BUILD_DIR)/kubeletctl_darwin_amd64;
darwin_arm64:
GOARCH=arm64 GOOS=darwin go build -v -o $(BUILD_DIR)/kubeletctl_darwin_arm64;
docker:
docker build . -t kubeletctl:latest
docker-release:
docker build -t kubeletctl:release -f Dockerfile.latest .
clean:
rm -rf $(BUILD_DIR)/