2020-10-26 13:42:07 +04: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 14:32:00 +04:00
|
|
|
.PHONY: all dep build
|
2020-10-26 13:48:25 +04:00
|
|
|
|
2020-10-26 13:42:07 +04:00
|
|
|
all: build
|
|
|
|
|
2020-10-26 14:41:19 +04:00
|
|
|
test:
|
2020-10-26 14:47:06 +04:00
|
|
|
@go test -short ${PKG_LIST}
|
2020-10-26 14:41:19 +04:00
|
|
|
|
|
|
|
build: test ## Build the binary file
|
2020-10-26 14:32:00 +04:00
|
|
|
@go build -i -v $(PKG)/cmd/dnsupdater
|