From 4494316152209f7f9bb34b05799afddc420d9073 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 15 Feb 2021 16:25:49 +0800 Subject: [PATCH] add slim target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 83c8bfb9a..2e9f08a9c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ OSX_APP_RESOURCES_DIR = $(OSX_APP_CONTENTS_DIR)/Resources FRONTEND_EXPORT_DIR = frontend/out all: $(BIN_DIR) - go build -o $(BIN_DIR)/$@ ./cmd/$@ + go build -tags web -o $(BIN_DIR)/$@ ./cmd/$@ + +slim: + go build -o $(BIN_DIR)/bbgo-slim ./cmd/bbgo $(BIN_DIR): mkdir -p $@