diff --git a/Makefile b/Makefile index 94be716..612691e 100644 --- a/Makefile +++ b/Makefile @@ -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)/*