release: speed up build (#1181)

Don't use the 'check and godep' target when building for a release, this
is now repeated 6 times for no reason as this is already checked on
travis.

Some other cleanups in the documentation as well.
This commit is contained in:
Miek Gieben
2017-10-30 15:55:41 +00:00
committed by Yong Tang
parent 22f9fc5aa5
commit 4a4556f0d6
2 changed files with 28 additions and 32 deletions

View File

@@ -1,13 +1,13 @@
# Makefile for building CoreDNS
GITCOMMIT:=$(shell git describe --dirty --always)
BINARY:=coredns
SYSTEM:=
CHECKS:=check godeps
all: coredns
# Phony this to ensure we always build the binary.
# TODO: Add .go file dependencies.
.PHONY: coredns
coredns: check godeps
coredns: $(CHECKS)
CGO_ENABLED=0 $(SYSTEM) go build -v -ldflags="-s -w -X github.com/coredns/coredns/coremain.gitCommit=$(GITCOMMIT)" -o $(BINARY)
.PHONY: check