2019-07-11 12:09:04 +00:00
|
|
|
.PHONY: dev build install clean
|
2017-07-03 06:42:34 +00:00
|
|
|
|
|
|
|
all: dev
|
|
|
|
|
|
|
|
dev: build
|
2017-07-07 05:42:04 +00:00
|
|
|
./pastebin
|
2017-07-03 06:42:34 +00:00
|
|
|
|
|
|
|
build: clean
|
|
|
|
go get ./...
|
2019-07-11 12:11:13 +00:00
|
|
|
go build ./cmd/pb/...
|
2017-07-07 05:42:04 +00:00
|
|
|
go build .
|
|
|
|
|
2019-07-11 12:09:04 +00:00
|
|
|
install:
|
2019-07-11 12:11:13 +00:00
|
|
|
go install ./cmd/pb/...
|
2019-07-11 12:09:04 +00:00
|
|
|
go install .
|
|
|
|
|
2017-07-07 05:42:04 +00:00
|
|
|
test:
|
2019-07-11 12:20:59 +00:00
|
|
|
go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -race ./...
|
2017-07-03 06:42:34 +00:00
|
|
|
|
|
|
|
clean:
|
2019-07-11 12:20:59 +00:00
|
|
|
git clean -f -d -X
|