2003-11-23 18:04:47 +00:00
|
|
|
<$PLAN9/src/mkhdr
|
|
|
|
|
2004-07-03 18:35:09 +00:00
|
|
|
TARG=`ls *.[cy] | grep -v "\.tab\.c$" | sed 's/\.[cy]//'`
|
2003-11-23 18:04:47 +00:00
|
|
|
|
|
|
|
<$PLAN9/src/mkmany
|
|
|
|
|
2005-01-04 21:26:13 +00:00
|
|
|
BUGGERED='CVS|faces|factotum|mailfs|page|scat|upas|venti|vncv|postscript|mnihongo|mpm|index'
|
2004-07-03 18:07:06 +00:00
|
|
|
DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'`
|
2003-11-23 18:04:47 +00:00
|
|
|
|
|
|
|
<$PLAN9/src/mkdirs
|
|
|
|
|
2005-01-04 21:26:13 +00:00
|
|
|
dir-all dir-install: $PLAN9/bin/9yacc $PLAN9/bin/9lex
|
|
|
|
|
|
|
|
bc.tab.c units.tab.c: $PLAN9/bin/9yacc
|
2004-04-21 23:22:06 +00:00
|
|
|
|
|
|
|
%.tab.h %.tab.c: %.y
|
2005-01-04 21:26:13 +00:00
|
|
|
$YACC $YFLAGS -s $stem $stem.y
|
2004-04-21 23:22:06 +00:00
|
|
|
|
|
|
|
%.o: %.tab.c
|
|
|
|
9c -o $target $stem.tab.c
|
|
|
|
|
2005-01-04 21:26:13 +00:00
|
|
|
delatex.c:D: delatex.lx $PLAN9/bin/9lex
|
|
|
|
9lex -t delatex.lx >delatex.c
|
|
|
|
|
|
|
|
$PLAN9/bin/9lex: $PLAN9/bin/9yacc
|
|
|
|
cd lex; mk install
|
|
|
|
|
|
|
|
CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch] delatex.c
|
2004-04-21 23:22:06 +00:00
|
|
|
|