aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-04 21:26:13 +0000
committerrsc <devnull@localhost>2005-01-04 21:26:13 +0000
commit9e0b4272746716b9bf8e26f165b0f37b4fa9f4a0 (patch)
treef0ece189f05c4f3a4566c415726a7d53f1363bb4 /src/cmd/mkfile
parent4bd8ec4c1cf24fb1aff5d582cc0eaf58e8f8fd0e (diff)
downloadplan9port-9e0b4272746716b9bf8e26f165b0f37b4fa9f4a0.tar.gz
plan9port-9e0b4272746716b9bf8e26f165b0f37b4fa9f4a0.tar.bz2
plan9port-9e0b4272746716b9bf8e26f165b0f37b4fa9f4a0.zip
small fixes; goodbye SHORTLIB
Diffstat (limited to 'src/cmd/mkfile')
-rw-r--r--src/cmd/mkfile17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/cmd/mkfile b/src/cmd/mkfile
index 9587ce2e..51e6ed6f 100644
--- a/src/cmd/mkfile
+++ b/src/cmd/mkfile
@@ -1,22 +1,29 @@
<$PLAN9/src/mkhdr
TARG=`ls *.[cy] | grep -v "\.tab\.c$" | sed 's/\.[cy]//'`
-SHORTLIB=sec fs mux regexp9 thread bio 9
<$PLAN9/src/mkmany
-BUGGERED='CVS|faces|factotum|mailfs|scat|upas|venti|vncv|postscript|mnihongo|mpm|index'
+BUGGERED='CVS|faces|factotum|mailfs|page|scat|upas|venti|vncv|postscript|mnihongo|mpm|index'
DIRS=lex `ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"|egrep -v '^lex$'`
<$PLAN9/src/mkdirs
-dir-all dir-install: $PLAN9/bin/9yacc
+dir-all dir-install: $PLAN9/bin/9yacc $PLAN9/bin/9lex
+
+bc.tab.c units.tab.c: $PLAN9/bin/9yacc
%.tab.h %.tab.c: %.y
- $YACC $YFLAGS -s $stem $prereq
+ $YACC $YFLAGS -s $stem $stem.y
%.o: %.tab.c
9c -o $target $stem.tab.c
-CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch]
+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