aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--gotp.go2
2 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 958a8b3..3cfbd13 100644
--- a/Makefile
+++ b/Makefile
@@ -3,18 +3,15 @@
.PHONY: all test build install serve-doc
-VERSION:=$(shell git describe --tags)
-LDFLAGS:=-ldflags "-s -w -X 'git.sr.ht/~shulhan/gotp.Version=$(VERSION)'"
-
all: test build
test:
CGO_ENABLED=1 go test -race -failfast -coverprofile=cover.out ./...
- go tool cover -html=cover.out -o cover.out
+ go tool cover -html=cover.out -o cover.html
build:
mkdir -p _sys/usr/bin/
- go build $(LDFLAGS) -o _sys/usr/bin/ ./cmd/...
+ go build -o _sys/usr/bin/ ./cmd/...
install: build
install -D _sys/usr/bin/gotp $(DESTDIR)/usr/bin/gotp
diff --git a/gotp.go b/gotp.go
index 3be006f..3cb200a 100644
--- a/gotp.go
+++ b/gotp.go
@@ -25,7 +25,7 @@ const (
)
var (
- Version = `0.2.3`
+ Version = `0.3.0-dev`
)
// normalizeLabel convert non alpha number, hyphen, underscore, or period