go gen improvements (#524)

Remove the "gen" directory and move directives_generate.go out of it.
Add a build ignore tag so it isn't build by default. Cleanup the go gen
invocations so there are not seen as package docs.

Simplify the code a bit and don't run go gen twice.
This commit is contained in:
Miek Gieben
2017-02-14 19:23:18 +00:00
committed by GitHub
parent a5f3cb5fe5
commit 98c86f3f9f
7 changed files with 140 additions and 145 deletions

View File

@@ -50,7 +50,7 @@ clean:
.PHONY: gen
gen:
go generate ./core/...
go generate coredns.go
.PHONY: distclean
distclean: clean