~rjarry/aerc-devel

aerc: mk: use absolute path of $PREFIX v2 REJECTED

kt programs: 1
 mk: use absolute path of $PREFIX

 1 files changed, 1 insertions(+), 0 deletions(-)
#677671 alpine-edge.yml success
#677672 archlinux.yml success
#677673 debian-stable.yml success
#677674 fedora-latest.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rjarry/aerc-devel/patches/28614/mbox | git am -3
Learn more about email & git

[PATCH aerc v2] mk: use absolute path of $PREFIX Export this patch

Allows using tilde or relative paths in $PREFIX, while still passing the
correctly expanded Prefix and ShareDir to the Go variables.

Signed-off-by: kt programs <ktprograms@gmail.com>
---
There is a possibility that this will not work on BSD (due to abspath
not being available), but I do not have access to a BSD system to test.
Fixed 'Recursive variable 'PREFIX' references itself (eventually)' error
(it didn't show up in my testing because I _had_ declared PREFIX).

 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 25a3047..ff6648a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
VERSION?=`git describe --long --tags --dirty 2>/dev/null || echo 0.7.1`
VPATH=doc
PREFIX?=/usr/local
PREFIX:=$(abspath $(PREFIX))
BINDIR?=$(PREFIX)/bin
SHAREDIR?=$(PREFIX)/share/aerc
MANDIR?=$(PREFIX)/share/man
-- 
2.34.1
aerc/patches: SUCCESS in 3m26s

[mk: use absolute path of $PREFIX][0] v2 from [kt programs][1]

[0]: https://lists.sr.ht/~rjarry/aerc-devel/patches/28614
[1]: mailto:ktprograms@gmail.com

✓ #677673 SUCCESS aerc/patches/debian-stable.yml https://builds.sr.ht/~rjarry/job/677673
✓ #677672 SUCCESS aerc/patches/archlinux.yml     https://builds.sr.ht/~rjarry/job/677672
✓ #677674 SUCCESS aerc/patches/fedora-latest.yml https://builds.sr.ht/~rjarry/job/677674
✓ #677671 SUCCESS aerc/patches/alpine-edge.yml   https://builds.sr.ht/~rjarry/job/677671
kt programs, Jan 22, 2022 at 04:38: