feat: upgrade makefile

This commit is contained in:
Urko 2023-02-26 22:09:51 +01:00
parent c0daf06ee6
commit 60b40c84f3
1 changed files with 2 additions and 3 deletions

View File

@ -13,8 +13,7 @@ test-coverage:
mkdir ${COVERAGE_DIR}
go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./...
go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html
cd ${COVERAGE_DIR}
open cover.html
build:
rm -rf ${BINARY_DIR}
mkdir ${BINARY_DIR}
go build -o ${BINARY_DIR}/${BINARY_NAME}
env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go