1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/usr.bin/awk/Makefile

39 lines
746 B
Makefile
Raw Normal View History

# $FreeBSD$
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 ytab.h
CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC}
DPADD= ${LIBM}
LDADD= -lm
2002-04-09 07:05:24 +00:00
LINKS= ${BINDIR}/nawk ${BINDIR}/awk
MLINKS= nawk.1 awk.1
2002-04-09 07:05:24 +00:00
CLEANFILES= maketab proctab.c ytab.h
2002-04-09 07:05:24 +00:00
ytab.h: awkgram.h
2002-04-10 03:10:03 +00:00
ln -sf ${.ALLSRC} ${.TARGET}
proctab.c: maketab
./maketab > proctab.c
build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c
2002-04-10 03:10:03 +00:00
CLEANFILES+= nawk.1
nawk.1: awk.1
cat ${.ALLSRC} > ${.TARGET}
.for f in b.c lib.c main.c run.c tran.c
${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff
patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f}
CLEANFILES+= ${f}
.endfor
.include <bsd.prog.mk>