the "go" tool can do it, if you set the right env vars.
gb (http://code.google.com/p/go-gb) can do it, and also generate makefiles for you (gb --makefiles).
http://code.google.com/p/go-gb/
If you decided to use makefiles, the DEPS= stanza may be of some use.
Cheers
Dave
Sent from my iPhone
On Tue, Jan 24, 2012 at 4:46 PM, John Asmuth <jas...@gmail.com> wrote:the "go" tool can do it, if you set the right env vars.Anywhere I can find documentation on these env vars?
In a terminal, run "go help gopath". This is the best documentation I have found regarding that env var. Unfortunately it doesn't show up in the godoc - you have to get it from the terminal (someone please correct me if I'm wrong).
FWIW I've been keeping a simple project on Github up-to-date with the
latest changes to the build tools. I've just converted it over to
using the 'go' tool and it was fairly easy to set up and get working.
The project consists of two commands (buffer and hello), one of which
relies on another package in the project. Perhaps it will give you an
idea of how you might set things up.
https://github.com/jnwhiteh/golang-examples
- Jim