add slim target

This commit is contained in:
c9s 2021-02-15 16:25:49 +08:00
parent 8224447985
commit 4494316152

View File

@ -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 $@