mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
add slim targets
This commit is contained in:
parent
4494316152
commit
afe4102fe1
13
Makefile
13
Makefile
|
@ -14,18 +14,21 @@ FRONTEND_EXPORT_DIR = frontend/out
|
||||||
all: $(BIN_DIR)
|
all: $(BIN_DIR)
|
||||||
go build -tags web -o $(BIN_DIR)/$@ ./cmd/$@
|
go build -tags web -o $(BIN_DIR)/$@ ./cmd/$@
|
||||||
|
|
||||||
slim:
|
|
||||||
go build -o $(BIN_DIR)/bbgo-slim ./cmd/bbgo
|
|
||||||
|
|
||||||
$(BIN_DIR):
|
$(BIN_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
bbgo-linux: $(BIN_DIR)
|
bbgo-linux: $(BIN_DIR)
|
||||||
GOOS=linux GOARCH=$(TARGET_ARCH) go build -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=linux GOARCH=$(TARGET_ARCH) go build -tags web -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
bbgo-darwin: $(BIN_DIR)
|
bbgo-darwin: $(BIN_DIR)
|
||||||
|
GOOS=darwin GOARCH=$(TARGET_ARCH) go build -tags web -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
|
bbog-darwin-slim: $(BIN_DIR)
|
||||||
GOOS=darwin GOARCH=$(TARGET_ARCH) go build -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=darwin GOARCH=$(TARGET_ARCH) go build -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
|
bbog-linux-slim: $(BIN_DIR)
|
||||||
|
GOOS=linux GOARCH=$(TARGET_ARCH) go build -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR) $(DIST_DIR) $(FRONTEND_EXPORT_DIR)
|
rm -rf $(BUILD_DIR) $(DIST_DIR) $(FRONTEND_EXPORT_DIR)
|
||||||
|
|
||||||
|
@ -51,7 +54,7 @@ desktop-osx: $(OSX_APP_CONTENTS_DIR)/MacOS/bbgo-desktop $(OSX_APP_CONTENTS_DIR)/
|
||||||
|
|
||||||
desktop: desktop-osx
|
desktop: desktop-osx
|
||||||
|
|
||||||
dist: static bbgo-linux bbgo-darwin desktop
|
dist: static bbgo-linux bbgo-linux-slim bbgo-darwin bbgo-darwin-slim desktop
|
||||||
mkdir -p $(DIST_DIR)
|
mkdir -p $(DIST_DIR)
|
||||||
tar -C $(BUILD_DIR) -cvzf $(DIST_DIR)/bbgo-$$(git describe --tags).tar.gz .
|
tar -C $(BUILD_DIR) -cvzf $(DIST_DIR)/bbgo-$$(git describe --tags).tar.gz .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user