summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--lang/dune17
2 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3f534c3..c96113f 100644
--- a/Makefile
+++ b/Makefile
@@ -113,14 +113,14 @@ check-citations: ## verify lang/la.ini's LT.txt:<n> citations (needs docs/resear
echo "SKIPPED: python3 not installed -- citations NOT verified this run"; \
fi
-install: build ## install binary, calendar data, templates, schema and man pages into PREFIX (default ~/.local)
+install: build ## install binary, calendar data, language tables, templates, schema and man pages into PREFIX (default ~/.local)
$(DUNE) dune install --prefix $(PREFIX)
@mkdir -p $(MANDIR)
install -m 644 man/colitur.1 $(MANDIR)/colitur.1
@mkdir -p $(MAN5DIR)
install -m 644 man/colitur-overlay.5 $(MAN5DIR)/colitur-overlay.5
install -m 644 man/colitur-templates.5 $(MAN5DIR)/colitur-templates.5
- @echo "installed $(BINDIR)/$(COLITUR), data in $(PREFIX)/share/colitur/{ef,templates,schema}, man pages in $(MANDIR) and $(MAN5DIR)"
+ @echo "installed $(BINDIR)/$(COLITUR), data in $(PREFIX)/share/colitur/{ef,lang,templates,schema}, man pages in $(MANDIR) and $(MAN5DIR)"
@command -v $(COLITUR) >/dev/null 2>&1 || \
echo "note: $(BINDIR) is not on PATH -- add it, or run $(BINDIR)/$(COLITUR) directly"
diff --git a/lang/dune b/lang/dune
new file mode 100644
index 0000000..057e95a
--- /dev/null
+++ b/lang/dune
@@ -0,0 +1,17 @@
+; The 725-name Latin/English liturgical vocabulary, installed into
+; <prefix>/share/colitur/lang/ so an installed `colitur` can find la.ini
+; the same way it finds its calendar data -- bin/main.ml's own [lang_dir]
+; probes exactly this location as its INSTALLED candidate, mirroring
+; data/dune's own ef/ layout and schema/dune's own schema/ layout.
+;
+; Without this file, `make install`/`dune install` never copied lang/ at
+; all: la.ini and en.ini are the entire point of the naming-and-config
+; work, and an installed binary silently degraded to raw slugs
+; (Lang.raw) with no error, because [lang_dir]'s installed candidate
+; never existed. Task: naming-and-config hotfix.
+(install
+ (section share)
+ (package colitur)
+ (files
+ (la.ini as lang/la.ini)
+ (en.ini as lang/en.ini)))