mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
fix linux build rules
This commit is contained in:
parent
748e3cfbe3
commit
9c95aecc2f
8
Makefile
8
Makefile
|
@ -50,7 +50,6 @@ bbgo-slim-linux-arm64: $(BIN_DIR)
|
||||||
GOOS=linux GOARCH=arm64 go build -tags release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=linux GOARCH=arm64 go build -tags release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
bbgo-darwin: bbgo-darwin-arm64 bbgo-darwin-amd64
|
bbgo-darwin: bbgo-darwin-arm64 bbgo-darwin-amd64
|
||||||
GOOS=darwin GOARCH=$(TARGET_ARCH) go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
|
||||||
|
|
||||||
bbgo-darwin-arm64: $(BIN_DIR)
|
bbgo-darwin-arm64: $(BIN_DIR)
|
||||||
GOOS=darwin GOARCH=arm64 go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=darwin GOARCH=arm64 go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
@ -58,9 +57,6 @@ bbgo-darwin-arm64: $(BIN_DIR)
|
||||||
bbgo-darwin-amd64: $(BIN_DIR)
|
bbgo-darwin-amd64: $(BIN_DIR)
|
||||||
GOOS=darwin GOARCH=amd64 go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=darwin GOARCH=amd64 go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
bbgo-darwin: $(BIN_DIR)
|
|
||||||
GOOS=darwin GOARCH=$(TARGET_ARCH) go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
|
||||||
|
|
||||||
bbgo-slim-darwin-arm64: $(BIN_DIR)
|
bbgo-slim-darwin-arm64: $(BIN_DIR)
|
||||||
GOOS=darwin GOARCH=arm64 go build -tags release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
GOOS=darwin GOARCH=arm64 go build -tags release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
|
@ -100,13 +96,15 @@ desktop: desktop-osx
|
||||||
$(DIST_DIR)/$(VERSION):
|
$(DIST_DIR)/$(VERSION):
|
||||||
mkdir -p $(DIST_DIR)/$(VERSION)
|
mkdir -p $(DIST_DIR)/$(VERSION)
|
||||||
|
|
||||||
$(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-amd64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-arm64.tar.gz: $(DIST_DIR)/$(VERSION)
|
$(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-amd64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-amd64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-arm64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-arm64.tar.gz: $(DIST_DIR)/$(VERSION)
|
||||||
$(eval BIN_SUFFIX := $(subst bbgo-$(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
$(eval BIN_SUFFIX := $(subst bbgo-$(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
||||||
$(eval BIN_NAME := $(subst $(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
$(eval BIN_NAME := $(subst $(VERSION)-,,$(basename $(basename $(notdir $@)))))
|
||||||
$(MAKE) bbgo-$(BIN_SUFFIX)
|
$(MAKE) bbgo-$(BIN_SUFFIX)
|
||||||
$(MAKE) bbgo-slim-$(BIN_SUFFIX)
|
$(MAKE) bbgo-slim-$(BIN_SUFFIX)
|
||||||
tar -C $(BIN_DIR) -cvzf $@ $(BIN_NAME)
|
tar -C $(BIN_DIR) -cvzf $@ $(BIN_NAME)
|
||||||
|
ifeq ($(SIGN),1)
|
||||||
gpg --yes --detach-sign --armor $@
|
gpg --yes --detach-sign --armor $@
|
||||||
|
endif
|
||||||
|
|
||||||
dist-bbgo-linux: static $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-arm64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-amd64.tar.gz
|
dist-bbgo-linux: static $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-arm64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-linux-amd64.tar.gz
|
||||||
dist-bbgo-darwin: static $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-arm64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-amd64.tar.gz
|
dist-bbgo-darwin: static $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-arm64.tar.gz $(DIST_DIR)/$(VERSION)/bbgo-$(VERSION)-darwin-amd64.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue
Block a user