10 lines
239 B
Makefile
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
|