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