Add mapsize(1) manual page and make install

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andy Dixon
2026-10-02 09:43:18 +01:00
co-authored by Claude Opus 5.5
parent 0fa49c662c
commit 68e6a07cdd
3 changed files with 466 additions and 1 deletions
+9 -1
View File
@@ -2,13 +2,21 @@ BIN := bin
PKG := ./...
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -s -w
PREFIX ?= /usr/local
.PHONY: build test race vet fmt fmt-check benchmark fuzz release clean treegen
.PHONY: build install man test race vet fmt fmt-check benchmark fuzz release clean treegen
build:
go build -trimpath -ldflags '$(LDFLAGS)' -o $(BIN)/mapsize ./cmd/mapsize
go build -trimpath -ldflags '$(LDFLAGS)' -o $(BIN)/treegen ./cmd/treegen
install: build
install -Dm755 $(BIN)/mapsize $(DESTDIR)$(PREFIX)/bin/mapsize
install -Dm644 docs/mapsize.1 $(DESTDIR)$(PREFIX)/share/man/man1/mapsize.1
man:
man -l docs/mapsize.1
test:
go test $(PKG)