# Compiled Object files, Static and Dynamic libs (Shared Objects) | |||||
*.o | |||||
*.a | |||||
*.so | |||||
cmd/rex/rex | |||||
# Folders | |||||
_obj | |||||
_test | |||||
# Architecture specific extensions/prefixes | |||||
*.[568vq] | |||||
[568vq].out | |||||
*.cgo1.go | |||||
*.cgo2.c | |||||
_cgo_defun.c | |||||
_cgo_gotypes.go | |||||
_cgo_export.* | |||||
_testmain.go | |||||
.env | |||||
*.exe | |||||
*.test | |||||
*.prof | |||||
gh-pages | |||||
gh-pages/* |
GOFLAGS ?= $(GOFLAGS:) | GOFLAGS ?= $(GOFLAGS:) | ||||
all: install test | |||||
all: test build | |||||
build: | build: | ||||
@go build $(GOFLAGS) ./... | |||||
@go get -v ./... | |||||
install: | |||||
@go get $(GOFLAGS) ./... | |||||
test: install | |||||
test: build | |||||
@go test -v ./... | @go test -v ./... | ||||
bench: install | bench: install | ||||
@go test -run=NONE -bench=. $(GOFLAGS) ./... | @go test -run=NONE -bench=. $(GOFLAGS) ./... | ||||
clean: | |||||
@go clean $(GOFLAGS) -i ./... |
log "github.com/Sirupsen/logrus" | log "github.com/Sirupsen/logrus" | ||||
"github.com/codegangsta/cli" | "github.com/codegangsta/cli" | ||||
"github.com/goanywhere/rex" | |||||
"github.com/goanywhere/rex/internal" | "github.com/goanywhere/rex/internal" | ||||
"github.com/goanywhere/rex/livereload" | "github.com/goanywhere/rex/livereload" | ||||
app := new(app) | app := new(app) | ||||
app.dir = cwd | app.dir = cwd | ||||
app.binary = filepath.Join(os.TempDir(), "rex-bin") | app.binary = filepath.Join(os.TempDir(), "rex-bin") | ||||
rex.Infof("App: %s", app.binary) | |||||
if runtime.GOOS == "windows" { | if runtime.GOOS == "windows" { | ||||
app.binary += ".exe" | app.binary += ".exe" | ||||
} | } |
box: wercker/golang@1.4.2 |