From 4b22c94e1e353cea6a934dbcf9c56f4e5c591dbb Mon Sep 17 00:00:00 2001 From: Elisa Date: Thu, 21 May 2026 10:51:09 +0200 Subject: [PATCH] chore: updated makefile --- .gitignore | 6 ++++++ Makefile | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 99da293..10d3365 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,12 @@ testbin/ dev/ apiserver.local.config/ + +# dev-kit common.mk cache/sentinel files +common.mk +.common.mk-version +.common.mk-checked +.common.mk-download default.etcd/ .DS_Store diff --git a/Makefile b/Makefile index 29cb610..474d838 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,12 @@ DEV_KIT_VERSION := v1.0.7 -include common.mk common.mk: - curl --fail -sSL https://raw.githubusercontent.com/opendefensecloud/dev-kit/$(DEV_KIT_VERSION)/common.mk -o common.mk.download && \ - mv common.mk.download $@ + @[ -f .common.mk-download ] || \ + curl --fail -sSL https://raw.githubusercontent.com/opendefensecloud/dev-kit/$(DEV_KIT_VERSION)/common.mk \ + -o .common.mk-download + mv .common.mk-download $@ + printf '%s' '$(DEV_KIT_VERSION)' > .common.mk-version + touch .common.mk-checked .PHONY: fmt fmt: $(GOLANGCI_LINT) ## Format code