2020-10-26 09:42:07 +00:00
|
|
|
PROJECT_NAME := "dnsupdater"
|
|
|
|
PKG := "gitlab.lehouerou.net/laurent/$(PROJECT_NAME)"
|
|
|
|
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
|
|
|
|
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
|
|
|
|
|
2020-10-26 10:32:00 +00:00
|
|
|
.PHONY: all dep build
|
2020-10-26 09:48:25 +00:00
|
|
|
|
2020-10-26 09:42:07 +00:00
|
|
|
all: build
|
|
|
|
|
2020-10-26 10:41:19 +00:00
|
|
|
test:
|
2020-10-26 10:47:06 +00:00
|
|
|
@go test -short ${PKG_LIST}
|
2020-10-26 10:41:19 +00:00
|
|
|
|
|
|
|
build: test ## Build the binary file
|
2020-10-26 10:32:00 +00:00
|
|
|
@go build -i -v $(PKG)/cmd/dnsupdater
|