-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 936 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 936 Bytes
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
DOCKERBIN ?= docker
.PHONY: all
all: build
.PHONY: build
build:
GO_BUILD_FLAGS="${GO_BUILD_FLAGS} -v -mod=readonly" ./scripts/build_bin.sh yes
PLATFORMS=linux-amd64 linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 windows-arm64
.PHONY: build-all
build-all:
@for platform in $(PLATFORMS); do \
$(MAKE) build-$${platform}; \
done
.PHONY: build-%
build-%:
GOOS=$$(echo $* | cut -d- -f 1) GOARCH=$$(echo $* | cut -d- -f 2) GO_BUILD_FLAGS="${GO_BUILD_FLAGS} -v -mod=readonly" ./scripts/build_bin.sh
.PHONY: build-image
build-image:
${DOCKERBIN} build -f build/verifyctl/Dockerfile -t verifyctl:latest .
.PHONY: build-image-fips
build-image-fips:
${DOCKERBIN} build -f build/verifyctl/Dockerfile.ubi9-fips -t verifyctl:fips .
generate:
@echo Generating client code form openapi specifications
@echo --------------------------------------------------
scripts/generate_code.sh
# Cleanup
.PHONY: clean
clean:
rm -rf ./bin