pominal/Makefile

25 lines
424 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:
2020-02-14 13:18:36 +00:00
@go build -a -o $(BIN_FILE)
@cp -a assets bin/assets
2019-06-29 22:11:25 +01:00
clean:
@go clean
@rm -rf $(BIN_FILE) $(BIN_DIR)/assets