forked from wormhole-foundation/wormhole
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leo
committed
Dec 6, 2020
1 parent
6fd34e3
commit d015422
Showing
3 changed files
with
56 additions
and
24 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules | |
*.iml | ||
bin | ||
target | ||
/mutagen.sh |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Makefile for production builds. This is not meant, or optimized, for incremental or debug builds. Use the devnet for | ||
# development. For the sake of decentralization, we specifically avoid the use of prebuilt containers wherever possible | ||
# to increase diversity - operators sourcing their compiler binaries from different sources is a good thing. | ||
|
||
SHELL = /usr/bin/env bash | ||
MAKEFLAGS += --no-builtin-rules | ||
|
||
PREFIX ?= /usr/local | ||
OUT = build | ||
BIN = $(OUT)/bin | ||
|
||
.PHONY: dirs | ||
dirs: Makefile | ||
@mkdir -p $(BIN) | ||
|
||
.PHONY: install | ||
install: bridge | ||
install -m 744 $(BIN)/* $(PREFIX)/bin | ||
setcap cap_ipc_lock=+ep $(PREFIX)/guardiand | ||
|
||
.PHONY: generate | ||
generate: dirs | ||
./generate-protos.sh | ||
|
||
.PHONY: bridge | ||
bridge: $(BIN)/guardiand | ||
|
||
.PHONY: $(BIN)/guardiand | ||
$(BIN)/guardiand: dirs | ||
cd bridge && go build -o mod=readonly -o ../$(BIN)/guardiand github.com/certusone/wormhole/bridge | ||
|
||
.PHONY: agent | ||
agent: $(BIN)/guardiand-solana-agent | ||
|
||
.PHONY: $(BIN)/guardiand-solana-agent | ||
$(BIN)/guardiand-solana-agent: dirs | ||
cd solana/agent && cargo build --release | ||
cp solana/target/release/agent $(BIN)/guardiand-solana-agent |
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