9 base=`basename $SRC .y`
10 if [ -z "$YACC" ]; then
15 if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
20 if cd $dir && $YACC -d $file; then
21 if [ -r y.tab.h -a -r y.tab.c ];then
23 sed -e "/^#/!b" -e "/^#/ s|y\.tab\.h|$SRC|" -e "/^#/ s|\"$base.y|\"$SRC|" y.tab.h > $base.h
24 sed -e "/^#/ s|y\.tab\.c|$SRC|" -e "/^#/ s|\"$base.y|\"$SRC|" y.tab.c > $base.c