mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
improve makefile rules
This commit is contained in:
parent
831779b7ae
commit
cae0fd9d48
6
Makefile
6
Makefile
|
@ -96,7 +96,7 @@ dist-linux: bbgo-linux bbgo-slim-linux
|
||||||
|
|
||||||
dist-darwin: bbgo-darwin bbgo-slim-darwin
|
dist-darwin: bbgo-darwin bbgo-slim-darwin
|
||||||
|
|
||||||
dist: static bbgo-linux bbgo-slim-linux bbgo-darwin bbgo-slim-darwin desktop
|
pack: static bbgo-linux bbgo-slim-linux bbgo-darwin bbgo-slim-darwin desktop
|
||||||
mkdir -p $(DIST_DIR)/$(GIT_DESC)
|
mkdir -p $(DIST_DIR)/$(GIT_DESC)
|
||||||
for arch in amd64 arm64 ; do \
|
for arch in amd64 arm64 ; do \
|
||||||
for platform in linux darwin ; do \
|
for platform in linux darwin ; do \
|
||||||
|
@ -108,6 +108,8 @@ dist: static bbgo-linux bbgo-slim-linux bbgo-darwin bbgo-slim-darwin desktop
|
||||||
done ; \
|
done ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
dist: pack
|
||||||
|
|
||||||
pkg/version/version.go: .FORCE
|
pkg/version/version.go: .FORCE
|
||||||
bash utils/generate-version-file.sh > $@
|
bash utils/generate-version-file.sh > $@
|
||||||
|
|
||||||
|
@ -139,4 +141,4 @@ embed: pkg/server/assets.go
|
||||||
|
|
||||||
static: frontend/out/index.html pkg/server/assets.go
|
static: frontend/out/index.html pkg/server/assets.go
|
||||||
|
|
||||||
.PHONY: bbgo bbgo-slim-darwin bbgo-slim-darwin-amd64 bbgo-slim-darwin-arm64 bbgo-darwin version dist migrations static embed desktop .FORCE
|
.PHONY: bbgo bbgo-slim-darwin bbgo-slim-darwin-amd64 bbgo-slim-darwin-arm64 bbgo-darwin version dist pack migrations static embed desktop .FORCE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user