NODE_ARGS ?=
CLIENT_ARGS ?= localhost:50051

.PHONY: run server client build

run: server

server:
	mvn compile exec:java -Dexec.mainClass=sister.iqbalmutex.server.NodeMain -Dexec.args="$(NODE_ARGS)"

client:
	mvn compile exec:java -Dexec.mainClass=sister.iqbalmutex.KVStoreMain -Dexec.args="$(CLIENT_ARGS)"

build:
	mvn package
