aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mkfile
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 04:24:09 +0000
committerrsc <devnull@localhost>2005-01-14 04:24:09 +0000
commit359c1e017ee367c34b082b1b4e6c002686d01bce (patch)
tree84b17b7a46cc9c7ec00a206ec5d4c2159a1b4927 /src/cmd/mkfile
parent78e51a8c6678b6e3dff3d619aa786669f531f4bc (diff)
downloadplan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.tar.gz
plan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.tar.bz2
plan9port-359c1e017ee367c34b082b1b4e6c002686d01bce.zip
works on Linux 2.6
Diffstat (limited to 'src/cmd/mkfile')
-rw-r--r--src/cmd/mkfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/mkfile b/src/cmd/mkfile
index c50d4e18..21070f0e 100644
--- a/src/cmd/mkfile
+++ b/src/cmd/mkfile
@@ -25,5 +25,13 @@ delatex.c:D: delatex.lx $PLAN9/bin/lex
$PLAN9/bin/lex: $PLAN9/bin/yacc
cd lex; mk install
+# 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
+
CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch] delatex.c