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..."