Git Ignore flags

This commit is contained in:
2020-11-02 11:53:17 -06:00
parent c13d1daa87
commit 3c20c097be
5 changed files with 131 additions and 15 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
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