mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
Add a build target which works when GOPATH is not set or correct
Getting Homebrew to work with a GOPATH is horrible... Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
df201350c0
commit
a7158e1cb2
10
Makefile
10
Makefile
@ -13,6 +13,14 @@ dist/moby dist/moby-$(GOOS): $(DEPS)
|
|||||||
--ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \
|
--ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \
|
||||||
-o $@ ./cmd/moby
|
-o $@ ./cmd/moby
|
||||||
|
|
||||||
|
.PHONY: nogopath
|
||||||
|
nogopath:
|
||||||
|
rm -rf src/github.com
|
||||||
|
mkdir -p src/github.com/moby
|
||||||
|
ln -s $(CURDIR) $(CURDIR)/src/github.com/moby/tool
|
||||||
|
cd src/github.com/moby/tool && GOPATH=$(CURDIR) $(MAKE) dist/moby
|
||||||
|
rm -rf src/github.com
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
ifndef GOMETALINTER
|
ifndef GOMETALINTER
|
||||||
@ -35,4 +43,4 @@ install: dist/moby
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf dist
|
rm -rf dist src/github.com
|
||||||
|
Loading…
Reference in New Issue
Block a user