diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,8 @@ ## SPDX-License-Identifier: GPL-3.0-only ## SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> +VERSION=$(shell git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g') + COVER_OUT:=cover.out COVER_HTML:=cover.html @@ -18,6 +20,11 @@ test: -coverprofile=$(COVER_OUT) ./... go tool cover -html=$(COVER_OUT) -o $(COVER_HTML) +.PHONY: build +build: LDFLAGS=-X 'git.sr.ht/~shulhan/jarink.Version=$(VERSION)' +build: + go build -ldflags="$(LDFLAGS)" ./cmd/jarink + .PHONY: doc.serve doc.serve: ciigo serve . |
