plan9port/src/cmd/mkfile

38 lines
842 B
Text
Raw Normal View History

<$PLAN9/src/mkhdr
2005-01-30 17:09:40 +00:00
TARG=`ls *.[cy] *.lx | egrep -v "\.tab\.c$" | sed 's/\.[cy]//; s/\.lx//'`
<$PLAN9/src/mkmany
BUGGERED='CVS|faces|factotum|mailfs|page|scat|upas|venti|vncv|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$'`
<$PLAN9/src/mkdirs
dir-all dir-install: $PLAN9/bin/yacc $PLAN9/bin/lex
2005-01-04 21:26:13 +00:00
bc.tab.c units.tab.c: $PLAN9/bin/yacc
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
delatex.c:D: delatex.lx $PLAN9/bin/lex
9 lex -t delatex.lx >delatex.c
2005-01-04 21:26:13 +00:00
$PLAN9/bin/lex: $PLAN9/bin/yacc
2005-01-04 21:26:13 +00:00
cd lex; mk install
2005-01-14 04:24:09 +00:00
# This should not be necessary.
$PLAN9/bin/yacc: $O.yacc
install -c $O.yacc $PLAN9/bin/yacc
$O.yacc: yacc.$O
$LD -o $target $prereq
yacc.$O: yacc.c
$CC $CFLAGS yacc.c
2005-01-04 21:26:13 +00:00
CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch] delatex.c
2004-04-21 23:22:06 +00:00