mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Make go generate run whenever middleware.cfg is changed (#530)
This commit is contained in:
committed by
Miek Gieben
parent
84fb9b8469
commit
bd033ef6c7
5
Makefile
5
Makefile
@@ -10,7 +10,7 @@ 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: deps
|
coredns: deps core/zmiddleware.go core/dnsserver/zdirectives.go
|
||||||
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
||||||
|
|
||||||
.PHONY: docker
|
.PHONY: docker
|
||||||
@@ -48,6 +48,9 @@ clean:
|
|||||||
go clean
|
go clean
|
||||||
rm -f coredns
|
rm -f coredns
|
||||||
|
|
||||||
|
core/zmiddleware.go core/dnsserver/zdirectives.go: middleware.cfg
|
||||||
|
go generate coredns.go
|
||||||
|
|
||||||
.PHONY: gen
|
.PHONY: gen
|
||||||
gen:
|
gen:
|
||||||
go generate coredns.go
|
go generate coredns.go
|
||||||
|
|||||||
Reference in New Issue
Block a user