netcaptain/Makefile

10 lines
239 B
Makefile
Raw Permalink Normal View History

2020-11-02 17:53:17 +00:00
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