#!/bin/sh
#
# rmake - make at the repo root

repo=$(git rev-parse --show-toplevel 2>/dev/null)

if [ -n "${repo}" ]; then
  cd "${repo}" || exit
  make "$@"
else
  printf '%s\n' "ERROR: not in a git repo" 1>&2
  exit 1
fi
