pominal/Makefile

24 lines
427 B
Makefile

NAME := pominal
BIN_DIR := ./bin
BIN_FILE := $(BIN_DIR)/$(NAME)
.PHONY: all test_unit build clean
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
test_lint:
@golangci-lint run --color always
build:
@go build -a -v -o $(BIN_FILE)
@cp -a assets bin/assets
clean:
@go clean
@rm -rf $(BIN_FILE) $(BIN_DIR)/assets