Make this compile in a standalone environment.
Tidy up CLEANFILES. Use built-in rules for building "maketab".
This commit is contained in:
parent
92d2baa6a2
commit
498e32cef0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94266
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user