b791fbe630
Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln are newer than the source file. There's no reason for meta mode to do this as make is already handling the rebuild dependency fine. Sponsored by: EMC / Isilon Storage Division
30 lines
519 B
Makefile
30 lines
519 B
Makefile
# $FreeBSD$
|
|
|
|
AWKSRC= ${.CURDIR}/../../contrib/one-true-awk
|
|
.PATH: ${AWKSRC}
|
|
|
|
PROG= awk
|
|
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
|
|
|
|
CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64
|
|
|
|
WARNS?= 1
|
|
|
|
LIBADD= m
|
|
|
|
LINKS= ${BINDIR}/awk ${BINDIR}/nawk
|
|
MLINKS= awk.1 nawk.1
|
|
|
|
CLEANFILES= maketab proctab.c ytab.h
|
|
|
|
ytab.h: awkgram.h .NOMETA
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
proctab.c: maketab
|
|
./maketab > proctab.c
|
|
|
|
build-tools: maketab
|
|
maketab: ytab.h ${AWKSRC}/maketab.c
|
|
|
|
.include <bsd.prog.mk>
|