.PHONY: default all clean

GOBIN = $(shell pwd)
BUILD_FLAGS = -ldflags "-s -w"

default: all

all: rpcproxy

rpcproxy:
	go build $(BUILD_FLAGS) -v -o=${GOBIN}/$@ ./

docker:
	docker build --no-cache -t rpcproxy:latest -f ./Dockerfile .
.PHONY: docker

start:
	docker compose up -d
.PHONY: start

stop:
	docker compose down
.PHONY: stop
