From 86974f335f0074db045539b20b352012490bcc59 Mon Sep 17 00:00:00 2001 From: David Docampo Date: Wed, 9 Aug 2023 12:36:41 +0200 Subject: [PATCH] move build to first place --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 819cad0..3bcc999 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ .PHONY: test +build: + @echo "Building application... 🔄" + @go build -tags main -o bin/sam . && echo "Finished building ✅" || (echo echo "Build failed ❌"; exit 1) + docs: @echo "Building docs application... 🔄" @go build -tags docs -o bin/sam . && echo "Finished building ✅" || (echo echo "Build failed ❌"; exit 1) @echo "\nGenerating docs... 🔄" @./bin/sam && echo "Finished docs generation ✅" || (echo echo "Docs generation failed ❌"; exit 1) -build: - @echo "Building application... 🔄" - @go build -tags main -o bin/sam . && echo "Finished building ✅" || (echo echo "Build failed ❌"; exit 1) - test: @echo "Running test... 🔄" @go test ./... -v -parallel 4 -cover && echo "Tests finished successfully ✅" || (echo echo "Tests finished with errors ❌"; exit 1)