Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of

unnecessarily long relative path .PATH values with make

MFC after:	1 days
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-01-17 03:58:37 +00:00
parent 1897a4f168
commit a0888761e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312332

View File

@ -5,7 +5,7 @@
# Do not take -DPOSIX_MISTAKE out. REGCFLAGS isn't important to you (it's
# for my use in some special contexts).
PATHS= ${.CURDIR}/.. ${.CURDIR}/../../locale ${.CURDIR}/../../../../include
PATHS= ${.CURDIR:H} ${.CURDIR:H:H}/locale ${SRCTOP}/include
.PATH: ${PATHS}
CFLAGS+= -static -DPOSIX_MISTAKE -DREDEBUG $(REGCFLAGS)