mirror of
https://github.com/coredns/coredns.git
synced 2026-01-08 01:41:22 -05:00
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:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user