From 20313deda134fa8a5042c43da0801e1c765810fd Mon Sep 17 00:00:00 2001 From: Sergey Chubaryan Date: Sun, 18 Aug 2024 23:01:57 +0300 Subject: [PATCH] makefile fixes --- main.go | 2 +- makefile | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index 28a36d5..f8f5142 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ import ( ) func main() { - debugMode := true + debugMode := false args, err := args_parser.Parse(os.Args) if err != nil { diff --git a/makefile b/makefile index 90e2374..6296eb9 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,10 @@ -all: release +all: install release release: GOEXPERIMENT=boringcrypto go build -ldflags "-s -w" -o ./.build/release/backend main.go -run: release - ./.build/release/backend -c ./misc/config.yaml -o ./.run/log.txt -p ./.run/cpu.pprof +install: + go install -venv: - python3 -m pip install --user virtualenv - -locust: - pip3 install locust \ No newline at end of file +run: install release + ./.build/release/backend -c ./misc/config.yaml -o ./.run/log.txt -p ./.run/cpu.pprof \ No newline at end of file