#!/bin/csh -f
# Make all figures
# arguments are passed on to each make

if ($1 == clean || $1 == spotless) then
	   foreach i (*/Makefile)
	   	   if ($i:h == misc) continue
	   	   echo $i:h
	   	   (cd $i:h; make $*)
	   end
	   (cd misc; make clean)
else
	   foreach i (*/Makefile)
	   	   echo $i:h
	   	   (cd $i:h; make $*)
	   end
endif
