NetBSD/usr.bin/awk/Makefile
jdolecek fad5af1f3b add -DHAS_ISBLANK to CPPFLAGS, so that current nawk would use our isblank(3)
instead of it's own; pointed out by Stefan Kruger in private e-mail

add rules to install the gawk info file too; it's useful to have installed,
and allows nawk to be drop-in replacement without need to adjust file lists
2003-08-03 17:19:45 +00:00

29 lines
555 B
Makefile

# $NetBSD: Makefile,v 1.6 2003/08/03 17:19:45 jdolecek Exp $
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/dist
.PATH: ${DIST}/nawk
PROG= awk
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
CPPFLAGS+= -I${DIST}/nawk -I. -DHAS_ISBLANK
LDADD+= -lm
DPADD+= ${LIBM}
YHEADER= yes
# gawk INFO file
GDIST= ${NETBSDSRCDIR}/gnu/dist/gawk
.PATH: ${GDIST}/doc
TEXINFO= awk.info
CLEANFILES+= ${PROG}.texi
${PROG}.texi: gawk.texi
@-rm -f $@
sed -e 's/gawk.info/${PROG}.info/g' <$> >$@
.include <bsd.info.mk>
.include <bsd.prog.mk>