From e25b192aff80a28ef60049b098bb313fe2c377a4 Mon Sep 17 00:00:00 2001 From: Urko Date: Sun, 26 Feb 2023 11:07:30 +0100 Subject: [PATCH] feat: update makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0bc64e6..90590ce 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ - +BINARY_DIR=bin +BINARY_NAME=webhook-listener COVERAGE_DIR=coverage lint: @@ -13,4 +14,7 @@ test-coverage: 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 \ No newline at end of file + open cover.html +build: + mkdir ${BINARY_DIR} + go build -o ${BINARY_DIR}/${BINARY_NAME} \ No newline at end of file