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)