/
kintsugi_sbertech
/
template_service
Обзор
Документация
Войти
/
kintsugi_sbertech
/
template_service
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
template/Makefile
27 строк
573 B
Александр Вакарь
Move template service to new repo
05 мар 2025, 13:14
05 мар 2025, 13:14
f803530
Код
Авторство
О чём код?
BINARY=template PKG=template PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) export PATH := $(PATH):$(HOME)/go/bin .PHONY: build test cover vet clean all: test build build: go build -v -o ./build/${BINARY} ${PKG}/cmd test: @# use '-count' option to disable caching test results @go test -coverprofile=${PKG}_coverage.out -race -count=1 ${PKG_LIST} cover: @go test -v -cover -coverprofile=cover.profile ${PKG_LIST} @# it starts browser for view covered/uncovered code @go tool cover -html=cover.profile vet: @go vet ${PKG_LIST} clean: rm ./build/*