Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchain

This produces a nicer path in debug info and build logs.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2016-04-18 13:13:59 +00:00
parent 20ff6f8501
commit 60b9a17328
10 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk>
PACKAGE=lib${LIB}
TOP= ${.CURDIR}/../../contrib/elftoolchain
TOP= ${.CURDIR:H:H}/contrib/elftoolchain
SRCDIR= ${TOP}/libdwarf
.PATH: ${SRCDIR}

View File

@ -5,7 +5,7 @@ SHLIBDIR?= /lib
.include <bsd.own.mk>
TOP= ${.CURDIR}/../../contrib/elftoolchain
TOP= ${.CURDIR:H:H}/contrib/elftoolchain
SRCDIR= ${TOP}/libelf
.PATH: ${SRCDIR}

View File

@ -4,7 +4,7 @@
PACKAGE=lib${LIB}
INTERNALLIB=
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
.PATH: ${ELFTCDIR}/libelftc

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
ADDR2LINEDIR= ${ELFTCDIR}/addr2line
.PATH: ${ADDR2LINEDIR}

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
SRCDIR= ${ELFTCDIR}/cxxfilt
.PATH: ${SRCDIR}

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
ELFCOPYDIR= ${ELFTCDIR}/elfcopy
.PATH: ${ELFCOPYDIR}

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
NMDIR= ${ELFTCDIR}/nm
.PATH: ${NMDIR}

View File

@ -1,6 +1,6 @@
# $FreeBSD$
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
READELFDIR= ${ELFTCDIR}/readelf
.PATH: ${READELFDIR}

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
SIZEDIR= ${ELFTCDIR}/size
.PATH: ${SIZEDIR}

View File

@ -2,7 +2,7 @@
.include <src.opts.mk>
ELFTCDIR= ${.CURDIR}/../../contrib/elftoolchain
ELFTCDIR= ${.CURDIR:H:H}/contrib/elftoolchain
.PATH: ${ELFTCDIR}/strings