From 48f26d9bb3cb558c8c36bec83d10e66799f93245 Mon Sep 17 00:00:00 2001 From: Nicolas-ggd Date: Thu, 19 Dec 2024 12:23:26 +0400 Subject: [PATCH] [UPDATE] remove makefile --- Makefile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 7fa36f8..0000000 --- a/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -include .env -## build: Build binary -build: - @echo "Building..." - env CGO_ENABLED=0 go build -ldflags="-s -w" -o ${BINARY_NAME} ./cmd/filestream - @echo "Built!" - -## run: builds and runs the application -run: build - @echo "Starting..." - @env ./${BINARY_NAME} & - -## debug: runs application in debug mode -debug: - @echo "Application started on debugging mode..." - @go run . -debug=true - -## clean: runs go clean and deletes binaries -clean: - @echo "Cleaning..." - @go clean - @rm ${BINARY_NAME} - @echo "Cleaned!" - -## start: an alias to run -start: run - -## stop: stops the running application -stop: - @echo "Stopping..." - @-pkill -SIGTERM -f "./${BINARY_NAME}" - @echo "Stopped!" - -## restart: stops and starts the application -restart: stop start - -## run test: runs all tests -test: - go test -v ./... - -## dependencies: install dependencies -dependencies: - @echo "Start to install dependencies..." - @go mod tidy || (echo "Failed to run 'go mod tidy'"; exit 1) - @echo "All necessary dependencies is installed..."