summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-13 23:06:37 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-13 23:06:37 -0500
commit18493180bdbbdadfe415d68c3a04a13b946fff43 (patch)
tree32c66be903bd6fe86d860b3c191d8cddbe10e6cb
parent25f21b55bd3179258f02d5498ecc969ff1ad820a (diff)
downloadaerc-18493180bdbbdadfe415d68c3a04a13b946fff43.zip
Make Makefile more POSIXly portable
This breaks out of tree builds though
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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 ./...