:
#
# Build script for Contributed CD-ROM Games
#
# Written 05-Mar-94 by rr@sco.com
#

SUBDIRS="acm-4.7 catclock cbzone gtetris ishido mandel mosaic nethack-3.1.2 \
	lptalk-1.3 reve sfs spy.vs.bob xballs xblockbuster xboing xfishtank \
	xinvaders xjewel xlife-2.0 xmille xmine xmoria-1.07 xmris xpipeman \
	xrobots xsnake xsokoban xspringies xteddy xquinto battleship adventure \
	xpilot-3.3.1 Frisk-0.99b4 net3d-0.08 xblast-1.11 antipolix-2.0 connx-1.0 \
	xmemory-1.0 NET2-fort flying-6.11 fly8 ms-0.07 xephem-2.4b roids"

HERE=`pwd`
BLDARG=

[ "$1" = "remove" ] && {
	[ $HERE= /v/bld/usr/src/Games ] && rm -rf *
	getcsc
}

[ "$1" = "get" ] && getcsc

[ "$1" = "install" ] && BLDARG="DESTDIR=$DESTDIR install"

[ "$1" = "clean" ] && BLDARG=clean

for i in $SUBDIRS
do
	[ -d $i ] && {
		echo "====Making in $i===="
		cd $i
		[ -f Imakefile ] && {
			/usr/bin/X11/xmkmf
			make Makefiles
			make includes
			make depend
		}
		make -k $BLDARG
		cd ..
	}
done
