diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |
