From 60b40c84f3e16fd6316d62c7b0aca51698af5dbd Mon Sep 17 00:00:00 2001 From: Urko Date: Sun, 26 Feb 2023 22:09:51 +0100 Subject: [PATCH] feat: upgrade makefile --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 90590ce..cec28ac 100644 --- a/Makefile +++ b/Makefile @@ -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} \ No newline at end of file + env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go \ No newline at end of file