From ad6dee0d90bb2972cbb3b44a1612d01d04ad234d Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 9 Apr 2002 07:03:32 +0000 Subject: Make this compile in a standalone environment. Tidy up CLEANFILES. Use built-in rules for building "maketab". --- usr.bin/awk/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/awk/Makefile') diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile index 18dae01..14bdb7d 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= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c +SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h CFLAGS+= -I. -I${AWKSRC} @@ -16,7 +16,7 @@ LINKS+= ${BINDIR}/nawk ${BINDIR}/awk MLINKS+= nawk.1 awk.1 .endif -CLEANFILES+= maketab proctab.c ytab.c ytab.h +CLEANFILES+= maketab proctab.c ytab.h ytab.h: awkgram.h ln -sf ${.ALLSRC} ${.TARGET} @@ -26,7 +26,6 @@ proctab.c: maketab build-tools: maketab maketab: ytab.h ${AWKSRC}/maketab.c - ${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab CLEANFILES+= nawk.1 nawk.1: awk.1 -- cgit v1.1