summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-03-23 04:49:43 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-03-23 04:49:43 +0000
commit2fe5bfd7a1e76fc6d1d2ff8ffb524f23ecb90a13 (patch)
treea340ddde15770cecc575b97e28ac25f5a3e3ad87
parentf1bb97a884af55ee0983f0afd9957a38f27335d0 (diff)
Notes
-rw-r--r--usr.bin/awk/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile
index f6be9313d6e4..18dae01f28c6 100644
--- a/usr.bin/awk/Makefile
+++ b/usr.bin/awk/Makefile
@@ -4,7 +4,7 @@ AWKSRC= ${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}
PROG= nawk
-SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h
+SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
CFLAGS+= -I. -I${AWKSRC}
@@ -18,12 +18,8 @@ MLINKS+= nawk.1 awk.1
CLEANFILES+= maketab proctab.c ytab.c ytab.h
-.ORDER: ytab.c ytab.h proctab.c
-ytab.c ytab.h: ${AWKSRC}/awkgram.y
- @echo Expect 42 reduce/shift conflicts and 83 reduce/reduce conflicts
- ${YACC} -d ${AWKSRC}/awkgram.y
- mv -f y.tab.c ytab.c
- mv -f y.tab.h ytab.h
+ytab.h: awkgram.h
+ ln -sf ${.ALLSRC} ${.TARGET}
proctab.c: maketab
./maketab > proctab.c