golang/xenlight: Get rid of GOPATH-based build artefacts
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 28 May 2020 11:20:54 +0000 (12:20 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 28 May 2020 11:20:54 +0000 (12:20 +0100)
commitb84c47221d2273b7d84866fce9c511ec3ba5abb8
tree130dbdebe9d8c5a5b65f97d8cf754cd9dd2cc483
parent60db5da62ac051aab0b217fa2d96acca1cd3ca3e
golang/xenlight: Get rid of GOPATH-based build artefacts

The original build setup used a "fake GOPATH" in tools/golang to test
the mechanism of building from go package files installed on a
filesystem.  With the move to modules, this isn't necessary, and leads
to potentially confusing directories being created.  (I.e., it might
not be obvious that files under tools/golang/src shouldn't be edited.)

Get rid of the code that creates this (now unused) intermediate
directory.  Add direct dependencies from 'build' onto the source
files.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Nick Rosbrook <rosbrookn@ainfosec.com>
tools/Rules.mk
tools/golang/Makefile
tools/golang/xenlight/Makefile