diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 |
