quake2forge/bootstrap
Jamie Wilkinson 5dfca94f1c * bootstrap tries to detect if you have gmake instead of
make for bsd systems
* cleaned out the header file checks in configure, now add
  them as they're needed
* check for sys/vt.h in src/rw*svgalib.c
2002-04-09 01:49:38 +00:00

33 lines
596 B
Bash
Executable file

#!/bin/sh
# $Id$
# bootstrap the build when checking out from CVS
# dodgy hack to use gmake if we're on bsd systems
if [ -x /usr/bin/gmake ]; then
MAKE=/usr/bin/gmake
elif [ -x /usr/local/bin/gmake ]; then
MAKE=/usr/local/bin/gmake
else
MAKE=make
fi
if [ "$1" = "clean" ]; then
# clean up junk
if [ -f Makefile ]; then
$MAKE distclean
fi
find . -name Makefile.in -print0 | xargs -0 rm -f
rm -f config.h.in aclocal.m4 install-sh missing mkinstalldirs \
stamp-h.in tags configure config.log
else
aclocal
autoheader
automake --foreign --add-missing --copy
autoconf
fi