From d4f813739eb91d908bdb0904a2e9b52f4f6e6429 Mon Sep 17 00:00:00 2001 From: YenchangChan Date: Fri, 1 Dec 2023 10:28:14 +0800 Subject: [PATCH] chore: change makefile to generate executable process to bin/ --- .gitignore | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2a03a7d7..5963f398 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ nacos_cache *.p12 dist vendor +bin/ diff --git a/Makefile b/Makefile index d837a02c..27b7b1fb 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,11 @@ pre: .PHONY: build build: pre - $(GOBUILD) -ldflags '$(SINKER_LDFLAGS)' -o . ./... + $(GOBUILD) -ldflags '$(SINKER_LDFLAGS)' -o bin/ ./... .PHONY: debug debug: pre - $(GOBUILD) -ldflags '$(SINKER_LDFLAGS)' -gcflags "all=-N -l" -o . ./... + $(GOBUILD) -ldflags '$(SINKER_LDFLAGS)' -gcflags "all=-N -l" -o bin/ ./... .PHONY: benchtest benchtest: pre