Fix the deps build (#583)
The deps target needs to be dependent on the generated middleware code, or you end up having to do make twice.
This commit is contained in:
parent
05dee778bd
commit
4985d698e2
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -7,11 +7,11 @@ all: coredns
|
||||||
# Phony this to ensure we always build the binary.
|
# Phony this to ensure we always build the binary.
|
||||||
# TODO: Add .go file dependencies.
|
# TODO: Add .go file dependencies.
|
||||||
.PHONY: coredns
|
.PHONY: coredns
|
||||||
coredns: check core/zmiddleware.go core/dnsserver/zdirectives.go
|
coredns: check
|
||||||
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
||||||
|
|
||||||
.PHONY: deps
|
.PHONY: deps
|
||||||
deps:
|
deps: core/zmiddleware.go core/dnsserver/zdirectives.go
|
||||||
go get ${BUILD_VERBOSE}
|
go get ${BUILD_VERBOSE}
|
||||||
go get -u github.com/golang/lint/golint
|
go get -u github.com/golang/lint/golint
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue