Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2017 18:58:44 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315170 - in head/usr.bin: bsdiff/bsdiff bzip2 bzip2recover chkey chpass compile_et cpio ctlstat drill ee elfcopy factor file ftp host ipcrm iscsictl kdump less lessecho lesskey lex lex...
Message-ID:  <201703121858.v2CIwi2a001598@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Mar 12 18:58:44 2017
New Revision: 315170
URL: https://svnweb.freebsd.org/changeset/base/315170

Log:
  Adopt SRCTOP in usr.bin
  
  Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
  over ${.CURDIR}/../foo for paths in Makefiles.
  
  Differential Revision:	https://reviews.freebsd.org/D9932
  Sponsored by:		Netflix
  Silence on:		arch@ (twice)

Modified:
  head/usr.bin/bsdiff/bsdiff/Makefile
  head/usr.bin/bzip2/Makefile
  head/usr.bin/bzip2recover/Makefile
  head/usr.bin/chkey/Makefile
  head/usr.bin/chpass/Makefile
  head/usr.bin/compile_et/Makefile
  head/usr.bin/cpio/Makefile
  head/usr.bin/ctlstat/Makefile
  head/usr.bin/drill/Makefile
  head/usr.bin/ee/Makefile
  head/usr.bin/elfcopy/Makefile
  head/usr.bin/factor/Makefile
  head/usr.bin/file/Makefile
  head/usr.bin/ftp/Makefile
  head/usr.bin/host/Makefile
  head/usr.bin/ipcrm/Makefile
  head/usr.bin/iscsictl/Makefile
  head/usr.bin/kdump/Makefile
  head/usr.bin/less/Makefile.common
  head/usr.bin/lessecho/Makefile
  head/usr.bin/lesskey/Makefile
  head/usr.bin/lex/Makefile
  head/usr.bin/lex/lib/Makefile
  head/usr.bin/locale/Makefile
  head/usr.bin/localedef/Makefile
  head/usr.bin/lzmainfo/Makefile
  head/usr.bin/m4/Makefile
  head/usr.bin/mandoc/Makefile
  head/usr.bin/minigzip/Makefile
  head/usr.bin/mkcsmapper/Makefile
  head/usr.bin/mkcsmapper/Makefile.inc
  head/usr.bin/mkcsmapper_static/Makefile
  head/usr.bin/mkesdb/Makefile
  head/usr.bin/mkesdb_static/Makefile
  head/usr.bin/mklocale/Makefile
  head/usr.bin/nc/Makefile
  head/usr.bin/opieinfo/Makefile
  head/usr.bin/opiekey/Makefile
  head/usr.bin/opiepasswd/Makefile
  head/usr.bin/pamtest/Makefile
  head/usr.bin/readelf/Makefile
  head/usr.bin/rsh/Makefile
  head/usr.bin/smbutil/Makefile
  head/usr.bin/svn/lib/Makefile.inc
  head/usr.bin/tar/Makefile
  head/usr.bin/telnet/Makefile
  head/usr.bin/tftp/Makefile
  head/usr.bin/top/Makefile
  head/usr.bin/truss/Makefile
  head/usr.bin/unvis/Makefile
  head/usr.bin/vacation/Makefile
  head/usr.bin/vi/Makefile
  head/usr.bin/vis/Makefile
  head/usr.bin/w/Makefile
  head/usr.bin/xinstall/Makefile
  head/usr.bin/xz/Makefile
  head/usr.bin/xzdec/Makefile
  head/usr.bin/yacc/Makefile
  head/usr.bin/ypwhich/Makefile

Modified: head/usr.bin/bsdiff/bsdiff/Makefile
==============================================================================
--- head/usr.bin/bsdiff/bsdiff/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/bsdiff/bsdiff/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -4,11 +4,11 @@ PROG=		bsdiff
 
 # libdivsufsort configured with:
 # cmake -DCMAKE_BUILD_TYPE="Release" -DBUILD_DIVSUFSORT64=ON
-.PATH:		${.CURDIR}/../../../contrib/libdivsufsort/lib
+.PATH:		${SRCTOP}/contrib/libdivsufsort/lib
 CFLAGS+=	-DHAVE_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 CFLAGS+=	-D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 CFLAGS+=	-D__STDC_LIMIT_MACROS -DBUILD_DIVSUFSORT64
-CFLAGS+=	-I${.CURDIR}/../../../contrib/libdivsufsort/include -I${.CURDIR}
+CFLAGS+=	-I${SRCTOP}/contrib/libdivsufsort/include -I${.CURDIR}
 SRCS=		divsufsort.c sssort.c trsort.c utils.c
 
 SRCS+=		bsdiff.c

Modified: head/usr.bin/bzip2/Makefile
==============================================================================
--- head/usr.bin/bzip2/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/bzip2/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-BZ2DIR=	${.CURDIR}/../../contrib/bzip2
+BZ2DIR=	${SRCTOP}/contrib/bzip2
 .PATH: ${BZ2DIR}
 
 PROG=	bzip2

Modified: head/usr.bin/bzip2recover/Makefile
==============================================================================
--- head/usr.bin/bzip2recover/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/bzip2recover/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-BZ2DIR=	${.CURDIR}/../../contrib/bzip2
+BZ2DIR=	${SRCTOP}/contrib/bzip2
 .PATH: ${BZ2DIR}
 
 PROG=	bzip2recover

Modified: head/usr.bin/chkey/Makefile
==============================================================================
--- head/usr.bin/chkey/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/chkey/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,11 +2,11 @@
 
 .include <src.opts.mk>
 
-.PATH: ${.CURDIR}/../newkey
+.PATH: ${SRCTOP}/usr.bin/newkey
 
 PROG=	chkey
 SRCS=	chkey.c generic.c update.c
-CFLAGS+= -I${.CURDIR}/../newkey
+CFLAGS+= -I${SRCTOP}/usr.bin/newkey
 .if ${MK_NIS} != "no"
 CFLAGS+= -DYP
 .endif

Modified: head/usr.bin/chpass/Makefile
==============================================================================
--- head/usr.bin/chpass/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/chpass/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,7 +3,7 @@
 
 .include <src.opts.mk>
 
-.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
+.PATH: ${SRCTOP}/usr.sbin/pwd_mkdb ${SRCTOP}/lib/libc/gen
 
 PROG=	chpass
 SRCS=	chpass.c edit.c field.c pw_scan.c table.c util.c
@@ -15,7 +15,7 @@ CFLAGS+= -DYP
 .endif
 #Some people need this, uncomment to activate
 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
-CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
+CFLAGS+=-I${SRCTOP}/usr.sbin/pwd_mkdb -I${SRCTOP}/lib/libc/gen -I.
 
 LIBADD=	crypt util
 .if ${MK_NIS} != "no"

Modified: head/usr.bin/compile_et/Makefile
==============================================================================
--- head/usr.bin/compile_et/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/compile_et/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,11 +1,11 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../contrib/com_err
+.PATH: ${SRCTOP}/contrib/com_err
 
 PROG=	compile_et
 SRCS=	compile_et.c parse.y lex.l
 LIBADD=	roken vers
-CFLAGS+=-I. -I${.CURDIR}/../../contrib/com_err
+CFLAGS+=-I. -I${SRCTOP}/contrib/com_err
 
 WARNS?=	0
 

Modified: head/usr.bin/cpio/Makefile
==============================================================================
--- head/usr.bin/cpio/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/cpio/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,8 +2,8 @@
 
 .include <src.opts.mk>
 
-_LIBARCHIVEDIR=	${.CURDIR}/../../contrib/libarchive
-_LIBARCHIVECONFDIR=	${.CURDIR}/../../lib/libarchive
+_LIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
+_LIBARCHIVECONFDIR=	${SRCTOP}/lib/libarchive
 
 PROG=	bsdcpio
 BSDCPIO_VERSION_STRING=	3.3.1

Modified: head/usr.bin/ctlstat/Makefile
==============================================================================
--- head/usr.bin/ctlstat/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/ctlstat/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,7 +2,7 @@
 
 PROG=		ctlstat
 MAN=		ctlstat.8
-SDIR=		${.CURDIR}/../../sys
+SDIR=		${SRCTOP}/sys
 CFLAGS+=	-I${SDIR}
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/drill/Makefile
==============================================================================
--- head/usr.bin/drill/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/drill/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 # Vendor sources and generated files
-LDNSDIR= ${.CURDIR}/../../contrib/ldns
+LDNSDIR= ${SRCTOP}/contrib/ldns
 
 .PATH: ${LDNSDIR}/drill
 

Modified: head/usr.bin/ee/Makefile
==============================================================================
--- head/usr.bin/ee/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/ee/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH:	${.CURDIR}/../../contrib/ee
+.PATH:	${SRCTOP}/contrib/ee
 
 CFLAGS+= -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
 	 -DHAS_SYS_WAIT
@@ -29,7 +29,7 @@ NLSSRCFILES=ee.msg
 . if exists(${.CURDIR}/nls/${lang}/ee.msg)
 NLSSRCDIR_${lang}= ${.CURDIR}/nls/${lang}
 . else
-NLSSRCDIR_${lang}= ${.CURDIR}/../../contrib/ee
+NLSSRCDIR_${lang}= ${SRCTOP}/contrib/ee
 . endif
 .endfor
 

Modified: head/usr.bin/elfcopy/Makefile
==============================================================================
--- head/usr.bin/elfcopy/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/elfcopy/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -28,7 +28,7 @@ LINKS=	${BINDIR}/${PROG} ${BINDIR}/strip
 
 # This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile
 # We need to link against the correct version of these files. One
-# solution is to include ../../sys in the include path. This causes
+# solution is to include SRCTOP/sys in the include path. This causes
 # problems when a header file in sys depends on a file in another
 # part of the tree, e.g. a machine dependent header.
 #

Modified: head/usr.bin/factor/Makefile
==============================================================================
--- head/usr.bin/factor/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/factor/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -5,7 +5,7 @@
 
 PROG=	factor
 SRCS=	factor.c pr_tbl.c
-CFLAGS+=-I${.CURDIR}/../primes
+CFLAGS+=-I${SRCTOP}/usr.bin/primes
 
 .if ${MK_OPENSSL} != "no"
 CFLAGS+=-DHAVE_OPENSSL
@@ -14,6 +14,6 @@ LIBADD+=crypto
 
 MAN=	factor.6
 MLINKS+=factor.6 primes.6
-.PATH:	${.CURDIR}/../primes
+.PATH:	${SRCTOP}/usr.bin/primes
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/file/Makefile
==============================================================================
--- head/usr.bin/file/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/file/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -20,7 +20,7 @@
 #    ever read sources, credits must appear in the documentation.
 # 4. This notice may not be removed or altered.
 
-SRCDIR=	${.CURDIR}/../../contrib/file
+SRCDIR=	${SRCTOP}/contrib/file
 .PATH: ${SRCDIR}/src
 .PATH: ${SRCDIR}/doc
 
@@ -29,12 +29,12 @@ PROG=	file
 MAGICPATH?=	/usr/share/misc
 
 CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DHAVE_CONFIG_H
-CFLAGS+= -I${.CURDIR}/../../lib/libmagic
+CFLAGS+= -I${SRCTOP}/lib/libmagic
 
 LIBADD=	magic
 
 FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \
-			${.CURDIR}/../../lib/libmagic/config.h
+			${SRCTOP}/lib/libmagic/config.h
 
 CLEANFILES+=	${MAN}
 

Modified: head/usr.bin/ftp/Makefile
==============================================================================
--- head/usr.bin/ftp/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/ftp/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -8,7 +8,7 @@
 #
 #CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
 
-TNFTP=	${.CURDIR}/../../contrib/tnftp
+TNFTP=	${SRCTOP}/contrib/tnftp
 .PATH: ${TNFTP}/src
 
 PROG=	ftp

Modified: head/usr.bin/host/Makefile
==============================================================================
--- head/usr.bin/host/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/host/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
-LDNSDIR=	${.CURDIR}/../../contrib/ldns
-LDNSHOSTDIR=	${.CURDIR}/../../contrib/ldns-host
+LDNSDIR=	${SRCTOP}/contrib/ldns
+LDNSHOSTDIR=	${SRCTOP}/contrib/ldns-host
 
 .PATH:		${LDNSHOSTDIR}
 

Modified: head/usr.bin/ipcrm/Makefile
==============================================================================
--- head/usr.bin/ipcrm/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/ipcrm/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,8 +3,8 @@
 PROG=	ipcrm
 SRCS=	ipcrm.c ipc.c
 LIBADD=	kvm
-CFLAGS+=-I${.CURDIR}/../ipcs
-.PATH:  ${.CURDIR}/../ipcs
+CFLAGS+=-I${SRCTOP}/usr.bin/ipcs
+.PATH:  ${SRCTOP}/usr.bin/ipcs
 
 WARNS?=	0
 

Modified: head/usr.bin/iscsictl/Makefile
==============================================================================
--- head/usr.bin/iscsictl/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/iscsictl/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -4,7 +4,7 @@ PACKAGE=	iscsi
 PROG=		iscsictl
 SRCS=		iscsictl.c periphs.c parse.y token.l y.tab.h
 CFLAGS+=	-I${.CURDIR}
-CFLAGS+=	-I${.CURDIR}/../../sys/dev/iscsi
+CFLAGS+=	-I${SRCTOP}/sys/dev/iscsi
 MAN=		iscsi.conf.5 iscsictl.8
 
 LIBADD=		xo

Modified: head/usr.bin/kdump/Makefile
==============================================================================
--- head/usr.bin/kdump/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/kdump/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,11 +3,11 @@
 
 .include <src.opts.mk>
 
-.PATH: ${.CURDIR}/../ktrace
+.PATH: ${SRCTOP}/usr.bin/ktrace
 
 PROG=		kdump
 SRCS=		kdump.c subr.c
-CFLAGS+=	-I${.CURDIR}/../ktrace #-I${.CURDIR}/../...
+CFLAGS+=	-I${SRCTOP}/usr.bin/ktrace
 
 LIBADD=		sysdecode
 .if ${MK_CASPER} != "no"

Modified: head/usr.bin/less/Makefile.common
==============================================================================
--- head/usr.bin/less/Makefile.common	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/less/Makefile.common	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,9 +1,9 @@
 # $FreeBSD$
 
-LSDIR=	${.CURDIR}/../../contrib/less
+LSDIR=	${SRCTOP}/contrib/less
 .PATH:	${LSDIR}
 
-CFLAGS+=-I${.CURDIR}/../less -I${LSDIR}
+CFLAGS+=-I${SRCTOP}/usr.bin/less -I${LSDIR}
 WARNS?=	1
 
 .SUFFIXES: .nro .1

Modified: head/usr.bin/lessecho/Makefile
==============================================================================
--- head/usr.bin/lessecho/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/lessecho/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -4,5 +4,5 @@ PROG=	lessecho
 SRCS=	lessecho.c version.c
 CLEANFILES= lessecho.1
 
-.include "${.CURDIR}/../less/Makefile.common"
+.include "${SRCTOP}/usr.bin/less/Makefile.common"
 .include <bsd.prog.mk>

Modified: head/usr.bin/lesskey/Makefile
==============================================================================
--- head/usr.bin/lesskey/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/lesskey/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -4,5 +4,5 @@ PROG=	lesskey
 SRCS=	lesskey.c version.c
 CLEANFILES= lesskey.1
 
-.include "${.CURDIR}/../less/Makefile.common"
+.include "${SRCTOP}/usr.bin/less/Makefile.common"
 .include <bsd.prog.mk>

Modified: head/usr.bin/lex/Makefile
==============================================================================
--- head/usr.bin/lex/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/lex/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -14,7 +14,7 @@ LINKS+=	${BINDIR}/lex ${BINDIR}/lex++
 LINKS+=	${BINDIR}/lex ${BINDIR}/flex
 LINKS+=	${BINDIR}/lex ${BINDIR}/flex++
 
-FLEXDIR=	${.CURDIR}/../../contrib/flex
+FLEXDIR=	${SRCTOP}/contrib/flex
 
 .PATH:		${FLEXDIR}
 

Modified: head/usr.bin/lex/lib/Makefile
==============================================================================
--- head/usr.bin/lex/lib/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/lex/lib/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,7 +2,7 @@
 
 .include <src.opts.mk>
 
-.PATH:	${.CURDIR}/../../../contrib/flex
+.PATH:	${SRCTOP}/contrib/flex
 
 LIB=    ln
 SRCS=   libmain.c libyywrap.c

Modified: head/usr.bin/locale/Makefile
==============================================================================
--- head/usr.bin/locale/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/locale/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
 PROG=	locale
-CFLAGS+= -I${.CURDIR}/../../lib/libc/locale
+CFLAGS+= -I${SRCTOP}/lib/libc/locale
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/localedef/Makefile
==============================================================================
--- head/usr.bin/localedef/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/localedef/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -20,7 +20,7 @@ parser.h: parser.y
 IGNORE_PRAGMA=	yes
 
 CFLAGS+=	-I. -I${.CURDIR}
-CFLAGS+=	-I${.CURDIR}/../../lib/libc/locale
-CFLAGS+=	-I${.CURDIR}/../../lib/libc/stdtime
+CFLAGS+=	-I${SRCTOP}/lib/libc/locale
+CFLAGS+=	-I${SRCTOP}/lib/libc/stdtime
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/lzmainfo/Makefile
==============================================================================
--- head/usr.bin/lzmainfo/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/lzmainfo/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,8 +2,8 @@
 
 PROG=	lzmainfo
 
-XZDIR=	${.CURDIR}/../../contrib/xz/src
-LZMALIBDIR=	${.CURDIR}/../../lib/liblzma
+XZDIR=	${SRCTOP}/contrib/xz/src
+LZMALIBDIR=	${SRCTOP}/lib/liblzma
 
 .PATH: ${XZDIR}/lzmainfo
 SRCS+=	lzmainfo.c

Modified: head/usr.bin/m4/Makefile
==============================================================================
--- head/usr.bin/m4/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/m4/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -7,7 +7,7 @@
 .include <src.opts.mk>
 
 PROG=	m4
-CFLAGS+=-DEXTENDED -I${.CURDIR} -I${.CURDIR}/../../lib/libopenbsd
+CFLAGS+=-DEXTENDED -I${.CURDIR} -I${SRCTOP}/lib/libopenbsd
 LIBADD=	y l m openbsd
 
 NO_WMISSING_VARIABLE_DECLARATIONS=

Modified: head/usr.bin/mandoc/Makefile
==============================================================================
--- head/usr.bin/mandoc/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mandoc/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,7 +2,7 @@
 
 .include <src.opts.mk>
 
-MDOCMLDIR=	${.CURDIR}/../../contrib/mdocml
+MDOCMLDIR=	${SRCTOP}/contrib/mdocml
 .PATH: ${MDOCMLDIR}
 
 PROG=	mandoc
@@ -89,7 +89,7 @@ SRCS=		${LIB_SRCS} \
 
 WARNS?=	3
 CFLAGS+= -DHAVE_CONFIG_H \
-	 -I${.CURDIR}/../../lib/libopenbsd/
+	 -I${SRCTOP}/lib/libopenbsd/
 LIBADD=	openbsd z
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/minigzip/Makefile
==============================================================================
--- head/usr.bin/minigzip/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/minigzip/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-SRCDIR=	${.CURDIR}/../../contrib/zlib/test
+SRCDIR=	${SRCTOP}/contrib/zlib/test
 .PATH:	${SRCDIR}
 
 PROG=	minigzip

Modified: head/usr.bin/mkcsmapper/Makefile
==============================================================================
--- head/usr.bin/mkcsmapper/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mkcsmapper/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,9 +1,9 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../lib/libc/iconv
+.PATH: ${SRCTOP}/lib/libc/iconv
 
 PROG=	mkcsmapper
-LDFLAGS+= -L${.CURDIR}/../../lib/libc
+LDFLAGS+= -L${SRCTOP}/lib/libc
 
 NO_WMISSING_VARIABLE_DECLARATIONS=
 

Modified: head/usr.bin/mkcsmapper/Makefile.inc
==============================================================================
--- head/usr.bin/mkcsmapper/Makefile.inc	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mkcsmapper/Makefile.inc	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,7 +3,7 @@
 .include <bsd.compiler.mk>
 
 SRCS+=	lex.l yacc.y
-CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../mkcsmapper \
-	 -I${.CURDIR}/../../lib/libc/iconv \
-	 -I${.CURDIR}/../../lib/libiconv_modules/mapper_std
+CFLAGS+= -I${.CURDIR} -I${SRCTOP}/usr.bin/mkcsmapper \
+	 -I${SRCTOP}/lib/libc/iconv \
+	 -I${SRCTOP}/lib/libiconv_modules/mapper_std
 CFLAGS.gcc+= --param max-inline-insns-single=64

Modified: head/usr.bin/mkcsmapper_static/Makefile
==============================================================================
--- head/usr.bin/mkcsmapper_static/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mkcsmapper_static/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../lib/libc/iconv ${.CURDIR}/../mkcsmapper
+.PATH: ${SRCTOP}/lib/libc/iconv ${SRCTOP}/usr.bin/mkcsmapper
 
 PROG=	mkcsmapper_static
 SRCS=	citrus_bcs.c citrus_db_factory.c citrus_db_hash.c \
@@ -11,7 +11,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
 
 build-tools: mkcsmapper_static
 
-.include "${.CURDIR}/../mkcsmapper/Makefile.inc"
+.include "${SRCTOP}/usr.bin/mkcsmapper/Makefile.inc"
 .include <bsd.prog.mk>
 
 ${PROG}: ${BUILD_TOOLS_META}

Modified: head/usr.bin/mkesdb/Makefile
==============================================================================
--- head/usr.bin/mkesdb/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mkesdb/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../lib/libc/iconv
+.PATH: ${SRCTOP}/lib/libc/iconv
 
 PROG=	mkesdb
 

Modified: head/usr.bin/mkesdb_static/Makefile
==============================================================================
--- head/usr.bin/mkesdb_static/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mkesdb_static/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../lib/libc/iconv ${.CURDIR}/../mkesdb
+.PATH: ${SRCTOP}/lib/libc/iconv ${SRCTOP}/usr.bin/mkesdb
 
 PROG=	mkesdb_static
 SRCS=	citrus_bcs.c citrus_db_factory.c citrus_db_hash.c \
@@ -11,7 +11,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
 
 build-tools: mkesdb_static
 
-.include "${.CURDIR}/../mkesdb/Makefile.inc"
+.include "${SRCTOP}/usr.bin/mkesdb/Makefile.inc"
 .include <bsd.prog.mk>
 
 ${PROG}: ${BUILD_TOOLS_META}

Modified: head/usr.bin/mklocale/Makefile
==============================================================================
--- head/usr.bin/mklocale/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/mklocale/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,7 +3,7 @@
 
 PROG=	mklocale
 SRCS=	yacc.y lex.l y.tab.h
-CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc/locale
+CFLAGS+= -I. -I${.CURDIR} -I${SRCTOP}/lib/libc/locale
 
 NO_WMISSING_VARIABLE_DECLARATIONS=
 

Modified: head/usr.bin/nc/Makefile
==============================================================================
--- head/usr.bin/nc/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/nc/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../contrib/netcat
+.PATH: ${SRCTOP}/contrib/netcat
 
 PROG=	nc
 SRCS=	netcat.c atomicio.c socks.c

Modified: head/usr.bin/opieinfo/Makefile
==============================================================================
--- head/usr.bin/opieinfo/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/opieinfo/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,10 +1,10 @@
 # $FreeBSD$
 #
-OPIE_DIST?=	${.CURDIR}/../../contrib/opie
+OPIE_DIST?=	${SRCTOP}/contrib/opie
 
 PROG=	opieinfo
 
-CFLAGS+=-I${.CURDIR}/../../lib/libopie
+CFLAGS+=-I${SRCTOP}/lib/libopie
 CFLAGS+=-I${OPIE_DIST}
 CFLAGS+=-DINSECURE_OVERRIDE
 

Modified: head/usr.bin/opiekey/Makefile
==============================================================================
--- head/usr.bin/opiekey/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/opiekey/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,10 +1,10 @@
 # $FreeBSD$
 #
-OPIE_DIST?=	${.CURDIR}/../../contrib/opie
+OPIE_DIST?=	${SRCTOP}/contrib/opie
 
 PROG=	opiekey
 
-CFLAGS+=-I${.CURDIR}/../../lib/libopie
+CFLAGS+=-I${SRCTOP}/lib/libopie
 CFLAGS+=-I${OPIE_DIST}
 CFLAGS+=-DINSECURE_OVERRIDE
 

Modified: head/usr.bin/opiepasswd/Makefile
==============================================================================
--- head/usr.bin/opiepasswd/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/opiepasswd/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,10 +1,10 @@
 # $FreeBSD$
 #
-OPIE_DIST?=	${.CURDIR}/../../contrib/opie
+OPIE_DIST?=	${SRCTOP}/contrib/opie
 
 PROG=	opiepasswd
 
-CFLAGS+=-I${.CURDIR}/../../lib/libopie
+CFLAGS+=-I${SRCTOP}/lib/libopie
 CFLAGS+=-I${OPIE_DIST}
 CFLAGS+=-DINSECURE_OVERRIDE
 

Modified: head/usr.bin/pamtest/Makefile
==============================================================================
--- head/usr.bin/pamtest/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/pamtest/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-OPENPAM=	${.CURDIR}/../../contrib/openpam
+OPENPAM=	${SRCTOP}/contrib/openpam
 .PATH: ${OPENPAM}/include ${OPENPAM}/bin/pamtest
 
 PROG= pamtest

Modified: head/usr.bin/readelf/Makefile
==============================================================================
--- head/usr.bin/readelf/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/readelf/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -14,7 +14,7 @@ CFLAGS+=-I${ELFTCDIR}/libelftc -I${ELFTC
 
 # This same hack is in lib/libelf/Makefile and lib/libdwarf/Makefile
 # We need to link against the correct version of these files. One
-# solution is to include ../../sys in the include path. This causes
+# solution is to include SRCTOP/sys in the include path. This causes
 # problems when a header file in sys depends on a file in another
 # part of the tree, e.g. a machine dependent header.
 #

Modified: head/usr.bin/rsh/Makefile
==============================================================================
--- head/usr.bin/rsh/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/rsh/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PROG=	rsh
-CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
+CFLAGS+=-I${SRCTOP}/libexec/rlogind
 
 PACKAGE=rcmds
 

Modified: head/usr.bin/smbutil/Makefile
==============================================================================
--- head/usr.bin/smbutil/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/smbutil/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -5,7 +5,7 @@ SRCS=	smbutil.c dumptree.c login.c looku
 
 LIBADD=	smb
 
-CONTRIBDIR=	${.CURDIR}/../../contrib/smbfs
+CONTRIBDIR=	${SRCTOP}/contrib/smbfs
 CFLAGS+=	-I${CONTRIBDIR}/include
 
 WARNS?=	0

Modified: head/usr.bin/svn/lib/Makefile.inc
==============================================================================
--- head/usr.bin/svn/lib/Makefile.inc	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/svn/lib/Makefile.inc	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,11 +2,11 @@
 
 .if !defined(SVNDIR)
 
-SVNDIR=		${.CURDIR}/../../../../contrib/subversion/subversion
-APRU=		${.CURDIR}/../../../../contrib/apr-util
-APR=		${.CURDIR}/../../../../contrib/apr
-SQLITE=		${.CURDIR}/../../../../contrib/sqlite3
-SERF=		${.CURDIR}/../../../../contrib/serf
+SVNDIR=		${SRCTOP}/contrib/subversion/subversion
+APRU=		${SRCTOP}/contrib/apr-util
+APR=		${SRCTOP}/contrib/apr
+SQLITE=		${SRCTOP}/contrib/sqlite3
+SERF=		${SRCTOP}/contrib/serf
 
 WARNS?=		0	# definitely not ready
 

Modified: head/usr.bin/tar/Makefile
==============================================================================
--- head/usr.bin/tar/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/tar/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 .include <src.opts.mk>
 
-_LIBARCHIVEDIR=	${.CURDIR}/../../contrib/libarchive
+_LIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
 
 PROG=	bsdtar
 BSDTAR_VERSION_STRING=	3.3.1
@@ -27,7 +27,7 @@ CFLAGS+=	-DHAVE_ICONV=1 -DHAVE_ICONV_H=1
 .endif
 
 CFLAGS+=	-DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\"
-CFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/../../lib/libarchive/config_freebsd.h\"
+CFLAGS+=	-DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\"
 CFLAGS+=	-I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/libarchive
 CFLAGS+=	-I${_LIBARCHIVEDIR}/libarchive_fe
 SYMLINKS=	bsdtar ${BINDIR}/tar

Modified: head/usr.bin/telnet/Makefile
==============================================================================
--- head/usr.bin/telnet/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/telnet/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -2,7 +2,7 @@
 
 .include <src.opts.mk>
 
-TELNETDIR=	${.CURDIR}/../../contrib/telnet
+TELNETDIR=	${SRCTOP}/contrib/telnet
 .PATH:		${TELNETDIR}/telnet
 
 PROG=		telnet

Modified: head/usr.bin/tftp/Makefile
==============================================================================
--- head/usr.bin/tftp/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/tftp/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,12 +1,12 @@
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 # $FreeBSD$
 
-.PATH: ${.CURDIR}/../../libexec/tftpd
+.PATH: ${SRCTOP}/libexec/tftpd
 
 PROG=	tftp
 SRCS=	main.c tftp-file.c tftp-io.c tftp-options.c tftp-transfer.c
 SRCS+=	tftp-utils.c tftp.c
-CFLAGS+=-I${.CURDIR}/../../libexec/tftpd
+CFLAGS+=-I${SRCTOP}/libexec/tftpd
 
 LIBADD=	edit
 

Modified: head/usr.bin/top/Makefile
==============================================================================
--- head/usr.bin/top/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/top/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-TOPDIR=	${.CURDIR}/../../contrib/top
+TOPDIR=	${SRCTOP}/contrib/top
 .PATH: ${TOPDIR}
 
 PROG=	top
@@ -24,7 +24,7 @@ CFLAGS+= -D"Table_size=${TOP_TABLE_SIZE}
 LIBADD=	ncursesw m kvm jail
 
 CLEANFILES= sigdesc.h
-SIGCONV_AWK= ${.CURDIR}/../../contrib/top/sigconv.awk
+SIGCONV_AWK= ${SRCTOP}/contrib/top/sigconv.awk
 STAGED_INCLUDE_DIR?= ${DESTDIR}/usr/include
 SIGNAL_H= ${STAGED_INCLUDE_DIR}/sys/signal.h
 sigdesc.h: ${SIGCONV_AWK} ${SIGNAL_H}

Modified: head/usr.bin/truss/Makefile
==============================================================================
--- head/usr.bin/truss/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/truss/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -6,8 +6,8 @@ SRCS=	main.c setup.c syscalls.c
 
 LIBADD=	sysdecode
 
-#CFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../../sys
-CFLAGS+= -I${.CURDIR}/../../sys
+#CFLAGS+= -I${.CURDIR} -I. -I${SRCTOP}/sys
+CFLAGS+= -I${SRCTOP}/sys
 
 ABIS+=		freebsd
 # Each ABI is expected to have an ABI.c, MACHINE_ARCH-ABI.c or

Modified: head/usr.bin/unvis/Makefile
==============================================================================
--- head/usr.bin/unvis/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/unvis/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,6 +3,6 @@
 
 PROG=	unvis
 
-.PATH: ${.CURDIR}/../../contrib/unvis
+.PATH: ${SRCTOP}/contrib/unvis
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/vacation/Makefile
==============================================================================
--- head/usr.bin/vacation/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/vacation/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
+SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
 .PATH:	${SENDMAIL_DIR}/vacation
 
 PROG=	vacation

Modified: head/usr.bin/vi/Makefile
==============================================================================
--- head/usr.bin/vi/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/vi/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -5,7 +5,7 @@
 .include <src.opts.mk>
 
 PACKAGE=	vi
-SRCDIR=		${.CURDIR}/../../contrib/nvi
+SRCDIR=		${SRCTOP}/contrib/nvi
 SUBDIR+=	catalog
 
 WARNS?=	0	# some warn issues on 32 bit machines

Modified: head/usr.bin/vis/Makefile
==============================================================================
--- head/usr.bin/vis/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/vis/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -4,7 +4,7 @@
 PROG=	vis
 SRCS=	vis.c foldit.c
 
-.PATH: ${.CURDIR}/../../contrib/vis
-CFLAGS+=	-I${.CURDIR}/../../contrib/vis
+.PATH: ${SRCTOP}/contrib/vis
+CFLAGS+=	-I${SRCTOP}/contrib/vis
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/w/Makefile
==============================================================================
--- head/usr.bin/w/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/w/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -7,6 +7,6 @@ MAN=	w.1 uptime.1
 LIBADD=	kvm sbuf xo util
 LINKS=	${BINDIR}/w ${BINDIR}/uptime
 
-.PATH: ${.CURDIR}/../../bin/ps
+.PATH: ${SRCTOP}/bin/ps
 
 .include <bsd.prog.mk>

Modified: head/usr.bin/xinstall/Makefile
==============================================================================
--- head/usr.bin/xinstall/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/xinstall/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -8,9 +8,9 @@ PROGNAME=	install
 SRCS=		xinstall.c getid.c
 MAN=		install.1
 
-.PATH:		${.CURDIR}/../../contrib/mtree
-CFLAGS+=	-I${.CURDIR}/../../contrib/mtree
-CFLAGS+=	-I${.CURDIR}/../../lib/libnetbsd
+.PATH:		${SRCTOP}/contrib/mtree
+CFLAGS+=	-I${SRCTOP}/contrib/mtree
+CFLAGS+=	-I${SRCTOP}/lib/libnetbsd
 
 LIBADD=	md
 

Modified: head/usr.bin/xz/Makefile
==============================================================================
--- head/usr.bin/xz/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/xz/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -10,8 +10,8 @@ LINKS+=	${BINDIR}/xz ${BINDIR}/lzcat
 
 MLINKS= xz.1 unxz.1 xz.1 lzma.1 xz.1 unlzma.1 xz.1 xzcat.1 xz.1 lzcat.1
 
-XZDIR=	${.CURDIR}/../../contrib/xz/src
-LZMALIBDIR=	${.CURDIR}/../../lib/liblzma
+XZDIR=	${SRCTOP}/contrib/xz/src
+LZMALIBDIR=	${SRCTOP}/lib/liblzma
 
 .PATH: ${XZDIR}/xz
 

Modified: head/usr.bin/xzdec/Makefile
==============================================================================
--- head/usr.bin/xzdec/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/xzdec/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -6,8 +6,8 @@ LINKS=	${BINDIR}/xzdec ${BINDIR}/lzdec
 
 MLINKS= xzdec.1 lzmadec.1
 
-XZDIR=	${.CURDIR}/../../contrib/xz/src
-LZMALIBDIR=	${.CURDIR}/../../lib/liblzma
+XZDIR=	${SRCTOP}/contrib/xz/src
+LZMALIBDIR=	${SRCTOP}/lib/liblzma
 
 .PATH: ${XZDIR}/xzdec
 

Modified: head/usr.bin/yacc/Makefile
==============================================================================
--- head/usr.bin/yacc/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/yacc/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -3,7 +3,7 @@
 
 .include <src.opts.mk>
 
-BYACC_SRC=	${.CURDIR}/../../contrib/byacc
+BYACC_SRC=	${SRCTOP}/contrib/byacc
 .PATH: ${BYACC_SRC}
 
 PROG=	yacc

Modified: head/usr.bin/ypwhich/Makefile
==============================================================================
--- head/usr.bin/ypwhich/Makefile	Sun Mar 12 18:38:03 2017	(r315169)
+++ head/usr.bin/ypwhich/Makefile	Sun Mar 12 18:58:44 2017	(r315170)
@@ -1,7 +1,7 @@
 #	from: @(#)Makefile	5.8 (Berkeley) 7/28/90
 # $FreeBSD$
 
-YPSERV=${.CURDIR}/../../usr.sbin/ypserv/common
+YPSERV=${SRCTOP}/usr.sbin/ypserv/common
 .PATH: ${YPSERV}
 
 PROG=	ypwhich



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