forked from SmartMeshFoundation/Photon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
42 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This Makefile is meant to be used by people that do not usually work
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
.PHONY:all Photon batchtransfer deploy newtestenv withdrawhash
export GOBIN = $(shell pwd)/build/bin
export GIT_COMMIT=$(shell git rev-list -1 HEAD)
export GO_VERSION=$(shell go version|sed 's/ //g')
export BUILD_DATE=$(shell date|sed 's/ //g')
export VERSION=0.91
all: Photon batchtransfer deploy newtestenv withdrawhash
Photon:
go install -ldflags ' -X github.com/SmartMeshFoundation/Photon/cmd/photon/mainimpl.GitCommit=$(GIT_COMMIT) -X github.com/SmartMeshFoundation/Photon/cmd/photon/mainimpl.GoVersion="$(GO_VERSION)" -X github.com/SmartMeshFoundation/Photon/cmd/photon/mainimpl.BuildDate="$(BUILD_DATE)" -X github.com/SmartMeshFoundation/Photon/cmd/photon/mainimpl.Version="$(VERSION)" ' ./cmd/photon
@echo "Done building."
@echo "Run \"$(GOBIN)/photon\" to launch photon."
batchtransfer:
go install ./cmd/tools/batchtransfer
@echo "Done building."
@echo "Run \"$(GOBIN)/batchtransfer\" to launch batchtransfer."
deploy:
go install ./cmd/tools/deploy
@echo "Done building."
@echo "Run \"$(GOBIN)/deploy\" to launch deploy."
newtestenv:
go install ./cmd/tools/newtestenv
@echo "Done building."
@echo "Run \"$(GOBIN)/newtestenv\" to launch newtestenv."
withdrawhash:
go install ./cmd/tools/withdrawhash
@echo "Done building."
@echo "Run \"$(GOBIN)/withdrawhash\" to launch withdrawhash."