dnsupdater/Makefile

14 lines
368 B
Makefile

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)
.PHONY: all dep build
all: build
test:
@go test -short ${PKG_LIST}
build: test ## Build the binary file
@go build -i -v $(PKG)/cmd/dnsupdater