mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-03 20:21:27 +00:00
Only copy files under Git control
Old method would copy EVERYTHING to gopath for building, including misc files, images, etc. Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This commit is contained in:
@@ -36,7 +36,7 @@ export GOPATH := ${LOCAL_GOPATH}
|
||||
gopath:
|
||||
@rm -rf ${LOCAL_GOPATH}/src
|
||||
@mkdir -p ${LOCAL_GOPATH}/src/${GO_PACKAGE_PREFIX}
|
||||
@cp -af * ${LOCAL_GOPATH}/src/${GO_PACKAGE_PREFIX}
|
||||
@tar cf - `git ls-files` | tar xf - --directory=${LOCAL_GOPATH}/src/${GO_PACKAGE_PREFIX}
|
||||
else
|
||||
LOCAL_GOPATH :=
|
||||
GOPATH ?= ${HOME}/go
|
||||
|
||||
Reference in New Issue
Block a user