From 7d3df0f8bb89c237e20a151257e75f920eda551b Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 25 Feb 2024 18:38:07 +0100 Subject: added makefile --- makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..28dce7f --- /dev/null +++ b/makefile @@ -0,0 +1,34 @@ +PREFIX?=/usr/local/texlive/2024/bin/custom +BINREPO=https://www.ekdosis.org/texlive +TMPDIR!=mktemp -d +OPENBSD_VERSION!=uname -r | sed 's/\.//' +TLBINPATH!=which latex | sed 's/\/latex//' +TMPSOURCE?="" + +.MAIN: fetch + +fetch: + curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz \ + > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz + curl ${BINREPO}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc \ + > ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc + gpg --verify ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz.asc +.if "${PREFIX}" == ${TLBINPATH} + @echo "Looks good." + @echo "Now do this to install or update the binaries:" + @echo "1. Remove the binaries that are currently installed:" + @echo " doas rm ${PREFIX}/*" + @echo "2. Run this command:" + @echo " make TMPSOURCE=${TMPDIR} install" +.else + @echo "Looks like your TL binaries are in ${TLBINPATH}" + @echo "instead of ${PREFIX}" + @echo "To complete the update, you must replace by hand your binaries" + @echo "with those in ${TMPDIR}/amd64-openbsd${OPENBSD_VERSION}.tar.xz" +.endif + +install: + unxz ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar.xz + doas tar xf ${TMPSOURCE}/amd64-openbsd${OPENBSD_VERSION}.tar -C ${PREFIX}/ + +.PHONY: fetch install -- cgit v1.2.3