Skip to content

Commit

Permalink
fix release makefile to not blow away GOPATH. some hacking docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Jones authored and Gareth Jones committed Mar 15, 2013
1 parent c35601a commit dea4df4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,30 @@ project by registering a handler. Here is an example:
}
}

Hacking on Websocketd
---------------------

Install Go
----------

Use apt, homebrew etc or install directly from source. Follow the instructions at http://golang.org/doc/install.

Building Websocketd
-------------------

Make sure you have set your `$GOPATH` to somewhere, e.g: `$HOME/gocode`:

$ mkdir -p $GOPATH/src/github.com/joewalnes
$ cd $GOPATH/src/github.com/joewalnes
$ git clone https://github.com/joewalnes/websocketd
$ cd websocketd
$ make

This will build the binary which you can run to play with. If you just wish to run it, you can do:

$ go run *.go


User Manual
-----------

Expand Down
1 change: 0 additions & 1 deletion release/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ GO_UNPACKED=$(GO_DIR)/.unpacked

# Prevent any global environment polluting the builds
GOROOT=
GOPATH=

FLAGS_linux_amd64 = GOOS=linux GOARCH=amd64
FLAGS_linux_386 = GOOS=linux GOARCH=386
Expand Down

0 comments on commit dea4df4

Please sign in to comment.