pominal/Makefile

23 lines
362 B
Makefile
Raw Normal View History

NAME := pominal
BIN_DIR := ./bin
BIN_FILE := $(BIN_DIR)/$(NAME)
2019-06-29 22:11:25 +01:00
.PHONY: all test_unit build clean
2019-06-29 22:11:25 +01:00
all: test_unit build
test_unit:
@go test -v -coverprofile=cover.out .
test_cover_report: test_unit
@go tool cover -html=cover.out -o code-coverage.html
2019-06-29 22:11:25 +01:00
test_lint:
@golangci-lint run --color always
2019-06-29 22:11:25 +01:00
build:
@go build -a -v -o $(BIN_FILE)
2019-06-29 22:11:25 +01:00
clean:
@go clean