This repository has been archived by the owner on Jul 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let a single
make
build the most single useful thing.
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
all: prod | ||
|
||
prod: $(shell find . -name "*.go") node_modules/spark-wallet | ||
go-bindata -tags full -prefix node_modules/spark-wallet/dist/www -o bindata.go node_modules/spark-wallet/dist/www/... | ||
go build -tags full -o ./sparko -ldflags "-X main.Version=$$(jq -r '.version' node_modules/spark-wallet/package.json)" | ||
|
||
dist: $(shell find . -name "*.go") node_modules/spark-wallet | ||
go-bindata -tags full -prefix node_modules/spark-wallet/dist/www -o bindata.go node_modules/spark-wallet/dist/www/... | ||
mkdir -p dist | ||
gox -tags="full" -osarch="darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" -output="dist/sparko_full_{{.OS}}_{{.Arch}}" -ldflags "-X main.Version=$$(jq -r '.version' node_modules/spark-wallet/package.json)" | ||
gox -osarch="darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" -output="dist/sparko_lean_{{.OS}}_{{.Arch}}" -ldflags "-X main.Version=$$(git log --pretty=format:'%H' | head -n 1)" | ||
|
||
sparko: $(shell find . -name "*.go") bindata.go | ||
go build -tags full -o ./sparko -ldflags "-X main.Version=$$(jq -r '.version' node_modules/spark-wallet/package.json)" | ||
|
||
bindata.go: node_modules/spark-wallet | ||
sparko: $(shell find . -name "*.go") node_modules/spark-wallet | ||
go-bindata -tags full -debug -prefix node_modules/spark-wallet/dist/www -o bindata.go node_modules/spark-wallet/dist/www/... | ||
go build -tags full -o ./sparko -ldflags "-X main.Version=$$(jq -r '.version' node_modules/spark-wallet/package.json)" | ||
|
||
node_modules/spark-wallet: | ||
npm install spark-wallet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters