diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 09:55:22 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 09:55:22 +0200 |
| commit | 2468224d0aaacd8b0e7478af55142bcd831d2b77 (patch) | |
| tree | 8b88e2421083c73b6257ea5c6abda56ed601f9d7 /Makefile | |
| parent | d0bcdc3f3912a4e746fe12050e8062b3679124aa (diff) | |
| download | clectio-2468224d0aaacd8b0e7478af55142bcd831d2b77.tar.gz clectio-2468224d0aaacd8b0e7478af55142bcd831d2b77.zip | |
feat: standalone calendar overrides (calendar.h) + document customization
Add a compile-time override table for MINOR local calendar changes, standalone
(no lectio, no toolchain): edit calendar.h (copied from calendar.def.h), add a
{ month, day, colour, "name" } row, make. It replaces a fixed date's name and
colour, every year, in both single-day and --month output. Limits (no engine):
fixed dates only; name/colour only, not readings or rank/precedence; an override
wins unconditionally.
README gains a "Customize the calendar" section documenting both tiers with
their limits: the standalone override above, and -- for readings, ranks and
movable feasts -- regenerating gen/ from a lectio calendar layer via
clectio-gen (-caldir/-use), then rebuilding with CORPUS= to repack any newly
cited verses, with a git-checkout revert note.
Both forms build clean under -Wall -Wextra; binary unchanged at 666 KB; default
(empty override table) output is unchanged.
Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,6 +23,9 @@ all: clectio config.h: cp config.def.h config.h +calendar.h: + cp calendar.def.h calendar.h + mktext: mktext.c $(CC) $(CFLAGS) -o $@ mktext.c @@ -42,7 +45,7 @@ endif text.lz.h: bin2h text_$(FORM).lz ./bin2h text_$(FORM).lz > $@ -clectio: clectio.c puff.c puff.h config.h text.lz.h gen/liturgy_$(FORM).h +clectio: clectio.c puff.c puff.h config.h calendar.h text.lz.h gen/liturgy_$(FORM).h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ clectio.c puff.c size: clectio |
