Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2017 00:07:41 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325190 - head/share/mk
Message-ID:  <201710310007.v9V07fol047572@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Tue Oct 31 00:07:41 2017
New Revision: 325190
URL: https://svnweb.freebsd.org/changeset/base/325190

Log:
  Add RELOBJTOP and RELSRCTOP for relative paths.
  
  RELSRCTOP is likely not as useful since make will always be running from
  inside of .OBJDIR and using something like ${.CURDIR}/${RELSRCTOP} is
  not redundant for ${SRCTOP}.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  head/share/mk/src.sys.env.mk

Modified: head/share/mk/src.sys.env.mk
==============================================================================
--- head/share/mk/src.sys.env.mk	Tue Oct 31 00:07:37 2017	(r325189)
+++ head/share/mk/src.sys.env.mk	Tue Oct 31 00:07:41 2017	(r325190)
@@ -6,10 +6,14 @@
 SRCTOP:= ${.PARSEDIR:tA:H:H}
 
 .if ${.CURDIR} == ${SRCTOP}
-RELDIR = .
+RELDIR= .
+RELTOP= .
 .elif ${.CURDIR:M${SRCTOP}/*}
-RELDIR := ${.CURDIR:S,${SRCTOP}/,,}
+RELDIR:= ${.CURDIR:S,${SRCTOP}/,,}
 .endif
+RELTOP?= 	${RELDIR:C,[^/]+,..,g}
+RELOBJTOP?=	${RELTOP}
+RELSRCTOP?=	${RELTOP}
 
 # site customizations that do not depend on anything!
 SRC_ENV_CONF?= /etc/src-env.conf



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