2016-06-10 14:36:41 +00:00
|
|
|
## simple makefile to log workflow
|
|
|
|
.PHONY: all test clean build install
|
|
|
|
|
|
|
|
GOFLAGS ?= $(GOFLAGS:)
|
|
|
|
|
|
|
|
all: clean install build
|
|
|
|
|
|
|
|
build:
|
2016-07-14 02:09:25 +00:00
|
|
|
go build $(GOFLAGS) ./...
|
2016-06-10 14:36:41 +00:00
|
|
|
|
|
|
|
install:
|
2016-07-14 02:09:25 +00:00
|
|
|
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
|
2016-07-15 03:06:25 +00:00
|
|
|
go get github.com/ChannelMeter/iso8601duration
|
2016-06-10 14:36:41 +00:00
|
|
|
|
|
|
|
test: install
|
2016-07-14 02:09:25 +00:00
|
|
|
go test $(GOFLAGS) ./...
|
2016-06-10 14:36:41 +00:00
|
|
|
|
|
|
|
bench: install
|
2016-07-14 02:09:25 +00:00
|
|
|
go test -run=NONE -bench=. $(GOFLAGS) ./...
|
2016-06-10 14:36:41 +00:00
|
|
|
|
|
|
|
clean:
|
2016-07-14 02:09:25 +00:00
|
|
|
go clean $(GOFLAGS) -i ./...
|
|
|
|
rm -rf ./build
|
|
|
|
|
|
|
|
|