aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 13:31:02 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 13:31:02 +0200
commit8ab0502569264478697bf3dbd060eadb82459647 (patch)
tree206284b4cef6bdd03cafc3f5272175e3086026de
parent8c15fac1c65806f97e1bfec2fd8af3e17d8d7b22 (diff)
downloadlectio-8ab0502569264478697bf3dbd060eadb82459647.tar.gz
lectio-8ab0502569264478697bf3dbd060eadb82459647.zip
make: add install-full (installs all three with wuj/drb/grb embedded)
`install` builds the vul-only default; `install-full` mirrors it but with -tags fullbible, so lectio, lectio-ui and lectio-web all ship the optional corpora. Prints a reminder that those are third-party scripture and such a build is not freely redistributable (see NOTICE).
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 29b3871..4719a6d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ PREFIX ?= $(HOME)/.local
BINDIR := $(PREFIX)/bin
MANDIR := $(PREFIX)/share/man/man1
-.PHONY: help build build-full install uninstall test vet fmt clean cross check-corpora add-corpus
+.PHONY: help build build-full install install-full uninstall test vet fmt clean cross check-corpora add-corpus
help: ## show this help
@grep -hE '^[a-z-]+:.*##' $(MAKEFILE_LIST) | sed -E 's/:.*## /\t/' | sort
build: ## build all three binaries (embeds only the Vulgate)
@@ -23,6 +23,14 @@ install: ## build and install the three binaries and man pages
go build -o $(BINDIR)/$(LECTIO_WEB) ./cmd/lectio-web
install -m 644 man/lectio.1 man/lectio-ui.1 man/lectio-web.1 $(MANDIR)
@echo "installed binaries to $(BINDIR) and man pages to $(MANDIR)"
+install-full: ## like install, but embeds the optional corpora (wuj, drb, grb) in all three
+ @mkdir -p $(BINDIR) $(MANDIR)
+ go build -tags fullbible -o $(BINDIR)/$(LECTIO) ./cmd/lectio
+ go build -tags fullbible -o $(BINDIR)/$(LECTIO_UI) ./cmd/lectio-ui
+ go build -tags fullbible -o $(BINDIR)/$(LECTIO_WEB) ./cmd/lectio-web
+ install -m 644 man/lectio.1 man/lectio-ui.1 man/lectio-web.1 $(MANDIR)
+ @echo "installed FULL binaries (wuj/drb/grb embedded) to $(BINDIR); man pages to $(MANDIR)"
+ @echo "note: wuj/drb/grb are third-party scripture; do not redistribute these binaries where that is not permitted (see NOTICE)"
uninstall: ## remove installed binaries and man pages
rm -f $(BINDIR)/$(LECTIO) $(BINDIR)/$(LECTIO_UI) $(BINDIR)/$(LECTIO_WEB)
rm -f $(MANDIR)/lectio.1 $(MANDIR)/lectio-ui.1 $(MANDIR)/lectio-web.1