mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
fix makefile target rule
This commit is contained in:
parent
0782fda8c5
commit
1e3de95be4
10
Makefile
10
Makefile
|
@ -15,10 +15,10 @@ all: $(BIN_DIR)
|
||||||
$(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 -o $(BIN_DIR)/$@ ./cmd/bbgo
|
||||||
|
|
||||||
bbgo.darwin: $(BIN_DIR)
|
bbgo-darwin: $(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
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -46,7 +46,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-darwin 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 .
|
||||||
|
|
||||||
|
@ -64,14 +64,14 @@ docker-push:
|
||||||
docker push yoanlin/bbgo
|
docker push yoanlin/bbgo
|
||||||
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
||||||
|
|
||||||
frontend/out/index.html:
|
frontend/out/index.html: .FORCE
|
||||||
(cd frontend && yarn export)
|
(cd frontend && yarn export)
|
||||||
|
|
||||||
pkged.go: frontend/out/index.html .FORCE
|
pkged.go: frontend/out/index.html .FORCE
|
||||||
pkger
|
pkger
|
||||||
git commit pkged.go -m "pkger: update bundled static files"
|
git commit pkged.go -m "pkger: update bundled static files"
|
||||||
|
|
||||||
static: frontend/out/index.html pkged.go .FORCE
|
static: frontend/out/index.html pkged.go
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
GO111MODULES=off go get github.com/markbates/pkger/cmd/pkger
|
GO111MODULES=off go get github.com/markbates/pkger/cmd/pkger
|
||||||
|
|
Loading…
Reference in New Issue
Block a user