24 lines
483 B
Bash
Raw Normal View History

2010-04-18 19:20:08 -07:00
#! /bin/sh
2010-09-10 00:47:09 -07:00
if [ "$1" = "--help" -o "$1" = "-h" ]; then
echo "Usage: $0 [--debug|--release|--reldbg|--all] <make arguments...>"
2010-09-10 00:47:09 -07:00
exit 0
fi
2010-04-18 19:20:08 -07:00
if [ "$1" = "--all" ]; then
shift
echo $0 --debug "$@"
$0 --debug "$@" || exit 1
echo $0 --release "$@"
$0 --release "$@" || exit 1
echo $0 --reldbg "$@"
$0 --reldbg "$@" || exit 1
2010-04-18 19:20:08 -07:00
exit 0
fi
export mgwdir=`dirname $0`
. $mgwdir/config.sh || exit 1
echo make -f $mgwdir_s/Makefile "$@"
exec make -f $mgwdir_s/Makefile "$@"