diff --git a/Makefile b/Makefile index f591cdc43..13947f94d 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ GOLANG_VERSION ?= $(shell cat .go-version) STRIP_FLAGS?=-s -w LDFLAGS?=-ldflags="$(STRIP_FLAGS) -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" +.SHELLFLAGS := -e -c + export GOSUMDB = sum.golang.org export GOTOOLCHAIN = go$(GOLANG_VERSION) diff --git a/Makefile.doc b/Makefile.doc index 8f5748d39..10290f6ea 100644 --- a/Makefile.doc +++ b/Makefile.doc @@ -10,6 +10,8 @@ READMES:=$(subst /README.md,,$(READMES)) PLUGINS:=$(subst plugin/,coredns-,$(PLUGINS)) PLUGINS:=$(subst /README.md,(7),$(PLUGINS)) +.SHELLFLAGS := -e -c + all: mmark man/coredns.1 man/corefile.5 plugins GO ?= go diff --git a/Makefile.docker b/Makefile.docker index 3f33cf001..4e2ef693b 100644 --- a/Makefile.docker +++ b/Makefile.docker @@ -36,6 +36,8 @@ LINUX_ARCH:=amd64 arm arm64 mips64le ppc64le s390x riscv64 loong64 DOCKER_IMAGE_NAME:=$(DOCKER)/$(NAME) DOCKER_IMAGE_LIST_VERSIONED:=$(shell echo $(LINUX_ARCH) | sed -e "s~mips64le ~~g" | sed -e "s~[^ ]*~$(DOCKER_IMAGE_NAME):&\-$(VERSION)~g") +.SHELLFLAGS := -e -c + all: @echo Use the 'release' target to download released binaries and build containers per arch, 'docker-push' to build and push a multi arch manifest. echo $(DOCKER_IMAGE_LIST_VERSIONED)