lib/Tools/make
author wenzelm
Mon, 26 Mar 2012 16:25:08 +0200
changeset 47115 1a05adae1cc9
parent 29143 72c960b2b83e
permissions -rwxr-xr-x
more robust command invocation via ISABELLE_JDK_HOME or SCALA_HOME (NB: bash exec requires genuine executable, not function);

#!/usr/bin/env bash
#
# Author: Markus Wenzel, TU Muenchen
#
# DESCRIPTION: Isabelle make utility


PRG="$(basename "$0")"

function usage()
{
  echo
  echo "Usage: isabelle $PRG [ARGS ...]"
  echo
  echo "  Compile the logic in current directory using IsaMakefile."
  echo "  ARGS are directly passed to the system make program."
  echo
  exit 1
}


## main

[ "$1" = "-?" ] && usage

exec make -f IsaMakefile "$@"