mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
14
Makefile
14
Makefile
@@ -11,7 +11,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: generate deps
|
coredns: deps
|
||||||
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
go build $(BUILD_VERBOSE) -ldflags="-s -w"
|
||||||
|
|
||||||
.PHONY: docker
|
.PHONY: docker
|
||||||
@@ -19,18 +19,8 @@ docker: deps
|
|||||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w"
|
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w"
|
||||||
docker build -t $(DOCKER_IMAGE_NAME) .
|
docker build -t $(DOCKER_IMAGE_NAME) .
|
||||||
|
|
||||||
../../mholt/caddy:
|
|
||||||
# Get caddy so we can generate into that codebase
|
|
||||||
# before getting all other dependencies.
|
|
||||||
go get ${BUILD_VERBOSE} github.com/mholt/caddy
|
|
||||||
|
|
||||||
.PHONY: generate
|
|
||||||
generate: ../../mholt/caddy
|
|
||||||
go get $(BUILD_VERBOSE) golang.org/x/tools/go/ast/astutil
|
|
||||||
go generate $(BUILD_VERBOSE)
|
|
||||||
|
|
||||||
.PHONY: deps
|
.PHONY: deps
|
||||||
deps: generate
|
deps:
|
||||||
go get ${BUILD_VERBOSE}
|
go get ${BUILD_VERBOSE}
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|||||||
Reference in New Issue
Block a user