mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
update zplugin.go path && add .PHONY for all target (#2433)
* update zplugin.go path && add .PHONY for all target * update zplugin.go path && add .PHONY for all target * update zplugin.go target
This commit is contained in:
5
Makefile
5
Makefile
@@ -9,6 +9,7 @@ PRESUBMIT:=core coremain plugin test request
|
|||||||
MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
||||||
CGO_ENABLED:=0
|
CGO_ENABLED:=0
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: coredns
|
all: coredns
|
||||||
|
|
||||||
.PHONY: coredns
|
.PHONY: coredns
|
||||||
@@ -16,7 +17,7 @@ coredns: $(CHECKS)
|
|||||||
CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
|
CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: presubmit core/zplugin.go core/dnsserver/zdirectives.go godeps
|
check: presubmit core/plugin/zplugin.go core/dnsserver/zdirectives.go godeps
|
||||||
|
|
||||||
.PHONY: godeps
|
.PHONY: godeps
|
||||||
godeps:
|
godeps:
|
||||||
@@ -60,7 +61,7 @@ ifeq ($(TEST_TYPE),coverage)
|
|||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
core/zplugin.go core/dnsserver/zdirectives.go: plugin.cfg
|
core/plugin/zplugin.go core/dnsserver/zdirectives.go: plugin.cfg
|
||||||
go generate coredns.go
|
go generate coredns.go
|
||||||
|
|
||||||
.PHONY: gen
|
.PHONY: gen
|
||||||
|
|||||||
Reference in New Issue
Block a user