#!/bin/csh -f set TOP_TAG_FILE = adm pushd . > /dev/null if ( -e $TOP_TAG_FILE ) then echo "imkmf: This is the TOP of the build area" set TOP = $cwd else cd .. set TOP = .. while ( ! -e $TOP_TAG_FILE ) cd .. # set TOP = $TOP/.. if ( `pwd` == "/" ) then echo "imkmf: Can't find $TOP_TAG_FILE above this dir" exit 1 endif end set TOP = $cwd endif popd > /dev/null if ( -e Makefile ) rm -f Makefile echo Demeter is in $TOP $TOP/config/imake -I. -I$TOP/config -DTOPDIR=$TOP -T $TOP/config/Imake.tmpl -f Imakefile