From a0888761e8cfed752ade41e41a459332f3af2a23 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 17 Jan 2017 03:58:37 +0000 Subject: 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 --- lib/libc/regex/grot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/regex/grot/Makefile b/lib/libc/regex/grot/Makefile index 056b55eac320..df639ba2fb9c 100644 --- a/lib/libc/regex/grot/Makefile +++ b/lib/libc/regex/grot/Makefile @@ -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) -- cgit v1.3