mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
fix makefile rules
This commit is contained in:
parent
7a92b1ff98
commit
77f487c5f3
5
Makefile
5
Makefile
|
@ -45,6 +45,7 @@ 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
|
||||||
|
@ -111,13 +112,13 @@ pkg/version/version.go: .FORCE
|
||||||
bash utils/generate-version-file.sh > $@
|
bash utils/generate-version-file.sh > $@
|
||||||
|
|
||||||
version: pkg/version/version.go migrations
|
version: pkg/version/version.go migrations
|
||||||
git commit $< -m "bump version to $(VERSION)"
|
git commit $< -m "bump version to $(VERSION)" || true
|
||||||
git tag -f $(VERSION)
|
git tag -f $(VERSION)
|
||||||
|
|
||||||
migrations:
|
migrations:
|
||||||
rockhopper compile --config rockhopper_mysql.yaml --output pkg/migrations/mysql
|
rockhopper compile --config rockhopper_mysql.yaml --output pkg/migrations/mysql
|
||||||
rockhopper compile --config rockhopper_sqlite.yaml --output pkg/migrations/sqlite3
|
rockhopper compile --config rockhopper_sqlite.yaml --output pkg/migrations/sqlite3
|
||||||
git add -v pkg/migrations && git commit -m "compile and update migration package" pkg/migrations || true
|
(git add -v pkg/migrations && git commit -m "compile and update migration package" pkg/migrations) || true
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
GOPATH=$(PWD)/_mod go mod download
|
GOPATH=$(PWD)/_mod go mod download
|
||||||
|
|
Loading…
Reference in New Issue
Block a user