9 base=`basename $SRC .l`
10 if [ -z "$LEX" ]; then
11 echo "lex not found - not regenerating $DEST"
15 if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
20 if cd $dir && $LEX $file; then
21 if [ -r $base.yy.c ];then
22 # we must guarantee that config.h comes first
23 echo "#include \"config.h\"" > $base.c
24 sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c >> $base.c