core: check for gh-release (#1079)

Stop when this can't be found early on.

Fixes #1053
This commit is contained in:
Miek Gieben 2017-09-15 09:56:20 +01:00 committed by GitHub
parent ae9cae67e3
commit 8e8ce6c3e1

View file

@ -39,6 +39,10 @@
#
# Docker push should happen after you make the new release and uploaded it to Github.
ifeq (, $(shell which gh-release))
$(error "No gh-release in $$PATH, install with `go get progrium/gh-release`")
endif
NAME:=coredns
VERSION:=$(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"')
ARCH:=$(shell uname -m)