From d17262c10fc24557741a5b571f40dfd9625fdb2e Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 29 Jul 2026 10:06:24 +0200 Subject: feat: man page (clectio.1), installed by make install Add a manual page covering usage, the -a/-g and --month options, the compile- time config.h settings (FORM/SIGLA/COLOR/GOSPEL_ONLY/WRAP), and both the bring-your-own-Bible and bring-your-own-calendar workflows, matching the README. Install it via make (MANPREFIX = $PREFIX/share/man); uninstall removes it too. Renders clean under man --warnings. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c22556a..f114488 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ CFLAGS = -std=c99 -Os -Wall -Wextra # string-table pointers in at link time instead of emitting ~57 KB of runtime # relocations -- a ~6% smaller binary for free. LDFLAGS = -s -no-pie -PREFIX = /usr/local +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man # The form to build is read from config.h so there is one source of truth. FORM := $(shell grep -Eq '^[[:space:]]*\#[[:space:]]*define[[:space:]]+FORM_EF' config.h 2>/dev/null && echo ef || echo of) @@ -53,9 +54,11 @@ size: clectio install: clectio install -Dm755 clectio $(DESTDIR)$(PREFIX)/bin/clectio + install -Dm644 clectio.1 $(DESTDIR)$(MANPREFIX)/man1/clectio.1 uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/clectio + rm -f $(DESTDIR)$(MANPREFIX)/man1/clectio.1 clean: rm -f clectio mktext bin2h text.lz.h gen/verses_of.keys gen/verses_ef.keys -- cgit v1.3