diff --git a/.gitignore b/.gitignore index 64c4b1c3..d28b449b 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,12 @@ testbin/ dev/ apiserver.local.config/ + +# dev-kit common.mk cache files +common.mk +.common.mk-version +.common.mk-checked +.common.mk-download default.etcd/ .DS_Store diff --git a/Makefile b/Makefile index 7117fbd3..3e15be47 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ # Include ODC common make targets -DEV_KIT_VERSION := v1.0.7 +DEV_KIT_VERSION := v1.0.8 -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 HACK_DIR ?= $(shell cd hack 2>/dev/null && pwd) SOLAR_CHART_DIR ?= $(BUILD_PATH)/charts/solar