k3s/Makefile
Derek Nola 612a9412fd
Enable make generate to use dapper and standardize go and gzip versions (#4861)
Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-01-04 11:12:25 -08:00

35 lines
574 B
Makefile

TARGETS := $(shell ls scripts | grep -v \\.sh)
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/v0.5.7/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
$(TARGETS): .dapper
./.dapper $@
.PHONY: deps
deps:
go mod vendor
go mod tidy
release:
./scripts/release.sh
.DEFAULT_GOAL := ci
.PHONY: $(TARGETS)
build/data:
mkdir -p $@
.PHONY: binary-size-check
binary-size-check:
scripts/binary_size_check.sh
.PHONY: image-scan
image-scan:
scripts/image_scan.sh $(IMAGE)