Update makefile

This commit is contained in:
Eliot Whalan 2016-07-14 12:09:25 +10:00
parent a1311ce1b5
commit e59e2c443b
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
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