forked from ethersphere/swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 1.11 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
# 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.
GOBIN = $(shell pwd)/build/bin
swarm:
build/env.sh go run build/ci.go install ./cmd/swarm
@echo "Done building."
@echo "Run \"$(GOBIN)/swarm\" to launch swarm."
alltools:
build/env.sh go run build/ci.go install ./cmd/...
# Wrap go modules vendor command to copy forked cgo libraries
# from go module cache and correct their file permissons.
.PHONY: vendor
vendor:
@go mod vendor
@cp -rf "$(shell go list -f {{.Dir}} github.com/karalabe/usb)/hidapi" vendor/github.com/karalabe/usb/hidapi
@chmod -R u+w vendor/github.com/karalabe/usb/hidapi
@cp -rf "$(shell go list -f {{.Dir}} github.com/karalabe/usb)/libusb" vendor/github.com/karalabe/usb/libusb
@chmod -R u+w vendor/github.com/karalabe/usb/libusb
@cp -rf "$(shell go list -f {{.Dir}} github.com/ethereum/go-ethereum/crypto/secp256k1)/libsecp256k1" vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1
@chmod -R u+w vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1