bin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after:	1 month
Sponsored by:	Dell EMC Isilon
This commit is contained in:
ngie 2017-03-04 11:31:08 +00:00
parent 3c852a3154
commit c52aabb8ad
5 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
.include <src.opts.mk> .include <src.opts.mk>
PACKAGE=runtime PACKAGE=runtime
TCSHDIR= ${.CURDIR}/../../contrib/tcsh TCSHDIR= ${SRCTOP}/contrib/tcsh
.PATH: ${TCSHDIR} .PATH: ${TCSHDIR}
PROG= csh PROG= csh

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE=runtime PACKAGE=runtime
MOUNT= ${.CURDIR}/../../sbin/mount MOUNT= ${SRCTOP}/sbin/mount
.PATH: ${MOUNT} .PATH: ${MOUNT}
PROG= df PROG= df

View File

@ -4,7 +4,7 @@ PACKAGE=runtime
SCRIPTS = freebsd-version SCRIPTS = freebsd-version
MAN = freebsd-version.1 MAN = freebsd-version.1
CLEANFILES = freebsd-version freebsd-version.sh CLEANFILES = freebsd-version freebsd-version.sh
NEWVERS = ${.CURDIR}/../../sys/conf/newvers.sh NEWVERS = ${SRCTOP}/sys/conf/newvers.sh
freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in ${NEWVERS} freebsd-version.sh: ${.CURDIR}/freebsd-version.sh.in ${NEWVERS}
eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \ eval $$(egrep '^(TYPE|REVISION|BRANCH)=' ${NEWVERS}) ; \

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE=sendmail PACKAGE=sendmail
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
.PATH: ${SENDMAIL_DIR}/rmail .PATH: ${SENDMAIL_DIR}/rmail
# Not much point this being static. It calls a shared sendmail... # Not much point this being static. It calls a shared sendmail...

View File

@ -28,9 +28,9 @@ WARNS?= 2
WFORMAT=0 WFORMAT=0
.PATH: ${.CURDIR}/bltin \ .PATH: ${.CURDIR}/bltin \
${.CURDIR}/../kill \ ${.CURDIR:H}/kill \
${.CURDIR}/../test \ ${.CURDIR:H}/test \
${.CURDIR}/../../usr.bin/printf ${SRCTOP}/usr.bin/printf
CLEANFILES+= mknodes mknodes.o \ CLEANFILES+= mknodes mknodes.o \
mksyntax mksyntax.o mksyntax mksyntax.o