Commit bd033ef6 authored by John Belamaric's avatar John Belamaric Committed by Miek Gieben

Make go generate run whenever middleware.cfg is changed (#530)

parent 84fb9b84
......@@ -10,7 +10,7 @@ all: coredns
# Phony this to ensure we always build the binary.
# TODO: Add .go file dependencies.
.PHONY: coredns
coredns: deps
coredns: deps core/zmiddleware.go core/dnsserver/zdirectives.go
go build $(BUILD_VERBOSE) -ldflags="-s -w"
.PHONY: docker
......@@ -48,6 +48,9 @@ clean:
go clean
rm -f coredns
core/zmiddleware.go core/dnsserver/zdirectives.go: middleware.cfg
go generate coredns.go
.PHONY: gen
gen:
go generate coredns.go
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment