chore: remove debug info in binary

This commit is contained in:
张泊明518370910136 2024-03-25 16:32:01 -04:00
parent 6286a81500
commit d7a8bbd710
GPG Key ID: D47306D7062CDA9D

View File

@ -2,9 +2,10 @@
BUILD_DIR = ./build
APPS := $(notdir $(wildcard ./cmd/*))
FLAGS := "-s -w"
all:
$(foreach APP,$(APPS), go build -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);)
$(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);)
clean:
rm -rf $(BUILD_DIR)/*