|
@@ -1,17 +1,19 @@
|
|
|
-default: debug test run
|
|
|
+default: test
|
|
|
|
|
|
-debug:
|
|
|
- go vet ./...
|
|
|
- gofmt -d ./
|
|
|
- gofmt -w ./
|
|
|
- go build -mod vendor -o ./out
|
|
|
+clean:
|
|
|
+ go clean -testcache ./...
|
|
|
|
|
|
test:
|
|
|
go test ./...
|
|
|
|
|
|
+lint:
|
|
|
+ golangci-lint run --disable=structcheck
|
|
|
+
|
|
|
+tidy:
|
|
|
+ go mod tidy
|
|
|
+
|
|
|
run:
|
|
|
- @./out --color=always
|
|
|
+ go build -mod vendor -o ./out
|
|
|
+ ./out --color=always
|
|
|
|
|
|
-update:
|
|
|
- go mod vendor
|
|
|
- go mod download
|
|
|
+.PHONY: default clean test lint tidy run
|