From 18493180bdbbdadfe415d68c3a04a13b946fff43 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 13 Feb 2018 23:06:37 -0500 Subject: Make Makefile more POSIXly portable This breaks out of tree builds though --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fed3d69..0386860 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ PKGNAME = git.sr.ht/~sircmpwn/aerc2 -GOPATH = $(realpath .go) +GOPATH = $(shell pwd)/.go PKGPATH = .go/src/$(PKGNAME) all: aerc .go: mkdir -p $(dir $(PKGPATH)) - ln -fTrs $(realpath .) $(PKGPATH) + ln -fs $(shell dirname $(GOPATH)) $(PKGPATH) get: .go env GOPATH=$(GOPATH) go get -d ./... -- cgit v1.2.3