From 52c23f300972fefdb7cbc57eadbc524afeea0cf5 Mon Sep 17 00:00:00 2001
From: Yves Junqueira
To build a Go program with gomake, create a Makefile alongside your program's
+source files. It should be similar to the example above, but include
+Make.cmd
instead of Make.pkg
:
+
+
+include $(GOROOT)/src/Make.inc + +TARG=helloworld +GOFILES=\ + helloworld.go\ + +include $(GOROOT)/src/Make.cmd ++ +
Running gomake build
will compile helloworld.go
+and produce an executable named helloworld
in the current
+directory.
+
+Running gomake install
will build helloworld
if
+necessary and copy it to the $GOBIN
directory
+($GOROOT/bin/
is the default).
+