mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 01:30:43 +00:00
3a624f5e23
cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
33 lines
566 B
Makefile
33 lines
566 B
Makefile
# $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
|
|
|
|
LINKS= ${BINDIR}/nawk ${BINDIR}/awk
|
|
MLINKS= nawk.1 awk.1
|
|
|
|
CLEANFILES= maketab proctab.c ytab.h
|
|
|
|
ytab.h: awkgram.h
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
proctab.c: maketab
|
|
./maketab > proctab.c
|
|
|
|
build-tools: maketab
|
|
maketab: ytab.h ${AWKSRC}/maketab.c
|
|
|
|
CLEANFILES+= nawk.1
|
|
nawk.1: awk.1
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|