Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 22:47:53 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305033 - in head/lib/atf: libatf-c libatf-c++
Message-ID:  <201608292247.u7TMlsXI050549@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Aug 29 22:47:53 2016
New Revision: 305033
URL: https://svnweb.freebsd.org/changeset/base/305033

Log:
  Minor Makefile simplifications for lib/atf/...
  
  - Replace uses of `${.CURDIR:H:H:H}` with ${SRCTOP}
  - Use built-in :H operator instead of ".." when enumerating paths.
  
  MFC after:	1 week
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/lib/atf/libatf-c++/Makefile
  head/lib/atf/libatf-c/Makefile

Modified: head/lib/atf/libatf-c++/Makefile
==============================================================================
--- head/lib/atf/libatf-c++/Makefile	Mon Aug 29 22:47:14 2016	(r305032)
+++ head/lib/atf/libatf-c++/Makefile	Mon Aug 29 22:47:53 2016	(r305033)
@@ -35,15 +35,15 @@ SHLIB_MAJOR=	2
 # libatf-c++ depends on the C version of the ATF library to build.
 LIBADD+=	atf_c
 
-LDFLAGS+=	-L${.OBJDIR}/../libatf-c
+LDFLAGS+=	-L${.OBJDIR:H}/libatf-c
 
-ATF=		${.CURDIR:H:H:H}/contrib/atf
+ATF=		${SRCTOP}/contrib/atf
 .PATH:		${ATF}
 .PATH:		${ATF}/atf-c++
 .PATH:		${ATF}/atf-c++/detail
 
 CFLAGS+=	-I${ATF}
-CFLAGS+=	-I${.CURDIR}/../libatf-c
+CFLAGS+=	-I${.CURDIR:H}/libatf-c
 CFLAGS+=	-I.
 
 CFLAGS+=	-DHAVE_CONFIG_H

Modified: head/lib/atf/libatf-c/Makefile
==============================================================================
--- head/lib/atf/libatf-c/Makefile	Mon Aug 29 22:47:14 2016	(r305032)
+++ head/lib/atf/libatf-c/Makefile	Mon Aug 29 22:47:53 2016	(r305033)
@@ -36,7 +36,7 @@ LIB=		atf-c
 PRIVATELIB=	true
 SHLIB_MAJOR=	1
 
-ATF=		${.CURDIR:H:H:H}/contrib/atf
+ATF=		${SRCTOP}/contrib/atf
 .PATH:		${ATF}
 .PATH:		${ATF}/atf-c
 .PATH:		${ATF}/atf-c/detail



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608292247.u7TMlsXI050549>