mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
improve Makefile targets
This commit is contained in:
parent
715c717dfd
commit
2365ccb5d8
16
Makefile
16
Makefile
|
@ -42,17 +42,23 @@ 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)"
|
||||||
|
|
||||||
static: pkged.go
|
frontend/out/index.html: .FORCE
|
||||||
(cd frontend && yarn export)
|
(cd frontend && yarn export)
|
||||||
|
|
||||||
|
pkged.go: frontend/out/index.html
|
||||||
pkger
|
pkger
|
||||||
git commit pkged.go -m "update pkged static files"
|
git commit pkged.go -m "update pkged static files"
|
||||||
|
|
||||||
desktop: build/BBGO.app/Contents/MacOS/bbgo-desktop static
|
static: frontend/out/index.html pkged.go
|
||||||
mkdir -p $(dir $<)
|
|
||||||
go build -o $< ./cmd/bbgo-desktop
|
build/BBGO.app/Contents/MacOS/bbgo-desktop:
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
go build -o $@ ./cmd/bbgo-desktop
|
||||||
|
|
||||||
|
desktop: static build/BBGO.app/Contents/MacOS/bbgo-desktop
|
||||||
# bash desktop/build-darwin.sh
|
# bash desktop/build-darwin.sh
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
GO111MODULES=off go get github.com/markbates/pkger/cmd/pkger
|
GO111MODULES=off go get github.com/markbates/pkger/cmd/pkger
|
||||||
|
|
||||||
.PHONY: dist migrations desktop
|
.PHONY: dist migrations static desktop .FORCE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user