| TARG=`ls *.[cy] *.lx | egrep -v "\.tab\.c$|^x\." | sed 's/\.[cy]//; s/\.lx//'` |
| BUGGERED='CVS|faces|factotum|lp|ip|mailfs|upas|vncv|mnihongo|mpm|index|u9fs|secstore|smugfs' |
| DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'` |
| dir-all dir-install: $PLAN9/bin/yacc $PLAN9/bin/lex |
| bc.tab.c units.tab.c: $PLAN9/bin/yacc |
| $YACC $YFLAGS -s $stem $stem.y |
| 9c -o $target $stem.tab.c |
| delatex.c:D: delatex.lx $PLAN9/bin/lex |
| 9 lex -t delatex.lx >delatex.c |
| $PLAN9/bin/lex: $PLAN9/bin/yacc |
| # This should not be necessary. |
| install -c $O.yacc $PLAN9/bin/yacc |
| CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch] delatex.c |