build: create a local GOPATH if none specified

Instead of requiring the developer to set up their own GOPATH somewhere,
do like Kubernetes and OpenShift Origin do:

git clone xxxxx
cd xxxxx
make

by creating an _output/ directory and linking the local source tree
into it, and setting that to be the GOPATH.

Signed-off-by: Dan Williams <dcbw@redhat.com>
This commit is contained in:
Dan Williams 2017-03-27 15:53:33 -05:00
parent 93b1ff5207
commit 9c44933b58
5 changed files with 54 additions and 50 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
/.artifacts/
/_output/
/conmon/conmon
/conmon/conmon.o
/docs/*.[158]