Use SRCTOP to refer to awk source in contrib/awk and remove unnecessary AWKSRC prefix

for maketab.c

The former simplifies pathing in make/displayed output, whereas the latter was just
unnecessarily superfluous since .PATH referenced the path to maketab.c earlier on in
the Makefile.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-02-11 20:27:06 +00:00
parent 15212f7a83
commit 272a2acfef
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# $FreeBSD$
AWKSRC= ${.CURDIR}/../../contrib/one-true-awk
AWKSRC= ${SRCTOP}/contrib/one-true-awk
.PATH: ${AWKSRC}
PROG= awk
@ -26,6 +26,6 @@ proctab.c: maketab
${BTOOLSPATH:U.}/maketab > proctab.c
build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c ${BUILD_TOOLS_META}
maketab: ytab.h maketab.c ${BUILD_TOOLS_META}
.include <bsd.prog.mk>