#
#  Sets the paths correctly, sets the CC value to
#  hc if it exists or cc otherwise
#  runs make
	set a = $cwd b = ""
	while ("${a:h}" != "")
		set  b = ${a:t} a = ${a:h}
	end
	set a = ${a:t}

	echo $a  $b

	set path = (. /$a/$b/{bin,etc} /usr/cs/{bin,etc} \
	    /usr/ucb /usr/bin /usr/misc/bin /{bin,etc} )
	setenv CPATH ":/$a/$b/include:/usr/cs/include:/usr/include"
	setenv EPATH ":/$a/$b/maclib:/usr/cs/maclib:/usr/maclib:"
	setenv LPATH ":/$a/$b/lib:/usr/cs/lib:/usr/lib:/lib:"
	setenv MPATH ":/$a/$b/man:/usr/cs/man:/usr/man:"
	printenv | grep PATH

	if ( -x /usr/misc/bin/hc ) then
		setenv CC /usr/misc/bin/hc
	else 
		setenv CC cc
	endif

	printenv CC
	echo make DSTDIR=/$a/$b GROUP=$b $1
	make DSTDIR=/$a/$b GROUP=$b $1

