forked from sammy007/open-ethereum-pool
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
46 lines (34 loc) · 1.03 KB
/
Makefile
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
38
39
40
41
42
43
44
45
# 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.
#
NAME := aquapool
#export GO111MODULE=on
.PHONY: all test clean deps
GOBIN = build/bin
OUTDIR = ${PWD}/${GOBIN}
all: deps ${GOBIN}/${NAME}
.PHONY += all
deps:
CGO_ENABLED=0 go get -v -u -d gitlab.com/aquachain/aquachain
CGO_ENABLED=0 go get -d -v ./...
.PHONY += deps
${GOBIN}/${NAME}:
#go get -v -u -d gitlab.com/aquachain/aquachain
CGO_ENABLED=0 go build -tags 'netgo osusergo static' -ldflags '-s -w' -v -o $@
test: all
build/env.sh go test -v ./...
clean:
${RM} -rf build/_workspace/pkg/ $(GOBIN)/*
${RM} -rf build/_workspace/src/ $(GOBIN)/*
clean-www:
${RM} -rf www/dist
frontend: ${OUTDIR}/frontend.tar.gz
${OUTDIR}/frontend.tar.gz: www/dist
cd www/dist && tar czf $@ .
www/dist: $(wildcard www/app/*.* www/app/*/*.*)
cd www && npm install -g ember-cli
cd www && npm install -g bower
cd www && npm install
cd www && bower install
cd www && ./build.sh