aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 10:06:24 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 10:06:24 +0200
commitd17262c10fc24557741a5b571f40dfd9625fdb2e (patch)
tree7f2aa12a0cbdb1b599a9802872cab6f1b7657c81 /Makefile
parent389a038f55731d3df82cae71a0bec4db7086059c (diff)
downloadclectio-d17262c10fc24557741a5b571f40dfd9625fdb2e.tar.gz
clectio-d17262c10fc24557741a5b571f40dfd9625fdb2e.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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