From bb6793a36aee4e54a3d405286af73b783b926d47 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Thu, 6 Oct 2022 18:35:56 -0700 Subject: [PATCH] Create Makefile Allows one to simply run `make install` to install BMC. The Makefile will use `kpsewhich` to detect the correct destination directory. --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ea8b348 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +TEXMFDIR != kpsewhich -var-value=TEXMFHOME +BMCDIR := $(DESTDIR)$(TEXMFDIR)/tex/latex/bmc + +SOURCES := $(wildcard *.sty) $(wildcard *.cls) + +.PHONY: dummy +dummy: + @printf 'Run `make -s install` to install BMC.\n' + +.PHONY: install +install: $(SOURCES) + @printf 'Copying files to %s...\n' '$(BMCDIR)' + install -D -t $(BMCDIR) $(SOURCES) + install -t $(BMCDIR) LICENCE + @printf 'Done copying files. Run mktexlsr(1) to regenerate the TeX database.\n'