-
Notifications
You must be signed in to change notification settings - Fork 17
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
Hunter
authored
Apr 7, 2022
1 parent
1b96f52
commit 39c4cf3
Showing
598 changed files
with
35,113 additions
and
112,718 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,35 +1,18 @@ | ||
GOCMD=go | ||
GOBUILD=$(GOCMD) build | ||
GOCLEAN=$(GOCMD) clean | ||
GOGET=$(GOCMD) get | ||
BINARY_NAME=madnet | ||
RACE_DETECTOR=madrace | ||
YELLOW=\033[0;33;1m | ||
NOCOL=\033[31;0m | ||
|
||
build: | ||
go build -o $(BINARY_NAME) ./cmd/main.go; | ||
all: test build | ||
|
||
race: | ||
go build -o $(RACE_DETECTOR) -race ./cmd/main.go; | ||
|
||
generate: generate-bridge generate-go | ||
build: | ||
$(GOCMD) build -o $(BINARY_NAME) ./cmd/main.go | ||
|
||
generate-bridge: | ||
export MSYS_NO_PATHCONV=1 &&\ | ||
export PASS_PERMVARS=1 &&\ | ||
mkdir bridge/node_modules 2>/dev/null || true &&\ | ||
docker/update-container.sh docker/generate-bridge/Dockerfile madnet-generate-bridge "-v $$PWD/bridge:/app -v /app/node_modules/" &&\ | ||
docker start -ia madnet-generate-bridge | ||
|
||
generate-go: | ||
export MSYS_NO_PATHCONV=1 &&\ | ||
export PASS_PERMVARS=1 &&\ | ||
./docker/update-container.sh docker/generate-go/Dockerfile madnet-generate-go "-v $$PWD:/app -v /app/bridge -v /app/.git" &&\ | ||
docker start -ia madnet-generate-go | ||
race: | ||
$(GOCMD) build -o $(RACE_DETECTOR) -race ./cmd/main.go | ||
|
||
clean: | ||
go clean | ||
clean: | ||
$(GOCLEAN) | ||
rm -f $(BINARY_NAME) | ||
rm -f $(RACE_DETECTOR) | ||
rm -rf localrpc/swagger-bindata/bindata.go localrpc/swagger/localstate.swagger.json **/*.pb.go **/*.capnp.go **/*.pb.gw.go **/*_mngen.go **/*_mngen_test.go bridge/artifacts bridge/bindings bridge/cache bridge/typechain-types bridge/node_modules | ||
|
||
docker container rm -vf madnet-generate-go madnet-generate-bridge 2> /dev/null | ||
docker image rm -f madnet-generate-go madnet-generate-bridge 2> /dev/null | ||
docker builder prune -f |
Oops, something went wrong.