ifdef GL_DOCKER
REPO_ROOT=/repo
else
REPO_ROOT=$(shell git rev-parse --show-toplevel)
endif
LIBS=${REPO_ROOT}/libs
SELF_DIR=${LIBS}/gl-signerproxy
MANIFEST_PATH = --manifest-path=${SELF_DIR}/Cargo.toml
FMT_OPTS = -- --check
CLIPPY_OPTS = --no-deps --message-format short
fmt:
cargo fmt ${MANIFEST_PATH} ${FMT_OPTS}
fmt-fix:
cargo fmt ${MANIFEST_PATH}
clippy:
cargo clippy ${CLIPPY_OPTS} ${MANIFEST_PATH}
clippy-fix:
cargo clippy --fix ${MANIFEST_PATH}
test:
cargo test ${MANIFEST_PATH}
check: clippy test
check-all: fmt clippy test
sync-files:
rsync -avr --delete --delete-excluded ${LIBS}/proto/glclient/greenlight.proto ${SELF_DIR}/.resources/proto/glclient/greenlight.proto
git add ${SELF_DIR}/.resources