mirror of
https://gitlab.com/pnx-tools/dns-updater.git
synced 2026-06-16 05:54:56 +02:00
12 lines
321 B
Makefile
12 lines
321 B
Makefile
GO=go
|
|
VERSION=$(shell git describe --always --tags --dirty --match="v*")
|
|
GOLDFLAGS=-v -s -w -X main.version="$(VERSION)"
|
|
GOBUILDFLAGS=-v -p $(shell nproc) -ldflags="$(GOLDFLAGS)"
|
|
|
|
.PHONY: build test
|
|
|
|
build :
|
|
$(GO) build $(GOBUILDFLAGS) -o build/dnsupdater cmd/dnsupdater/main.go
|
|
|
|
test :
|
|
$(GO) test -v ./...
|