From 8ab0502569264478697bf3dbd060eadb82459647 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 29 Jul 2026 13:31:02 +0200 Subject: 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). --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.3