Created
December 24, 2017 10:47
-
-
Save emersion/8d40b01c7baf5dd15ba2227bc3ed74d6 to your computer and use it in GitHub Desktop.
Fuck GOPATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PKGNAME = github.com/emersion/fuckgopath | |
GOPATH = $(realpath .go) | |
PKGPATH = .go/src/$(PKGNAME) | |
all: fuckgopath | |
.go: | |
mkdir -p $(dir $(PKGPATH)) | |
ln -fTrs $(realpath .) $(PKGPATH) | |
fuckgopath: .go | |
env GOPATH=$(GOPATH) go build -o $@ ./cmd/$@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment