From 96a69e9833cb7dd07ee7e8f80d6e2431932c4dc7 Mon Sep 17 00:00:00 2001 From: Andrey Ivanov Date: Fri, 4 Sep 2020 11:40:33 +0300 Subject: [PATCH] =?UTF-8?q?HW12=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw12_13_14_15_calendar/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw12_13_14_15_calendar/Makefile b/hw12_13_14_15_calendar/Makefile index 60ddfd8..3751e6c 100644 --- a/hw12_13_14_15_calendar/Makefile +++ b/hw12_13_14_15_calendar/Makefile @@ -1,13 +1,16 @@ build: go build -o ./bin/calendar ./src +run: + go run ./src/calendar/main.go -config ./configs/config.toml + test: go test -race ./src/... -install-lint-deps: - (which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 - lint: install-lint-deps golangci-lint run ./... -.PHONY: build test lint +install-lint-deps: + go install github.com/golangci/golangci-lint/cmd/golangci-lint + +.PHONY: build run test lint \ No newline at end of file