netcaptain/Makefile
2020-11-02 11:53:17 -06:00

10 lines
239 B
Makefile

BIN=$(CURDIR)/build
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || echo v0)
.PHONY: build clean
build:
go build -o build/ncpt -ldflags="-X main.version=${VERSION}" cmd/ncpt/*
clean:
rm -f build/ncpt