Update makefile

This commit is contained in:
Eliot Whalan 2016-07-14 12:09:25 +10:00
parent 13eeaed8ce
commit 69faa3d86c
1 changed files with 11 additions and 6 deletions

View File

@ -6,17 +6,22 @@ GOFLAGS ?= $(GOFLAGS:)
all: clean install build
build:
@go build $(GOFLAGS) ./...
go build $(GOFLAGS) ./...
install:
@go get $(GOFLAGS) ./...
go get github.com/dchest/uniuri
go get github.com/ewhal/pygments
go get github.com/go-sql-driver/mysql
go get github.com/gorilla/mux
test: install
@go test $(GOFLAGS) ./...
go test $(GOFLAGS) ./...
bench: install
@go test -run=NONE -bench=. $(GOFLAGS) ./...
go test -run=NONE -bench=. $(GOFLAGS) ./...
clean:
@go clean $(GOFLAGS) -i ./...
@rm -rf ./build
go clean $(GOFLAGS) -i ./...
rm -rf ./build