aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.ypxfrd
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-03-01 04:22:23 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-03-01 04:22:23 +0000
commit33bfdd500bffcb1e059e615df61f060515cbd3f4 (patch)
treec6e5efd7a6ee3c53c9ef4baf5f8c89b06a0d5fca /usr.sbin/rpc.ypxfrd
parent1de134e52813fff7bddc93fabd86dfed02331d27 (diff)
downloadsrc-33bfdd500bffcb1e059e615df61f060515cbd3f4.tar.gz
src-33bfdd500bffcb1e059e615df61f060515cbd3f4.zip
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones
The SRCTOP conversion simplifies pathing in make/displayed output. Also, while here, change a hardcoded path to ${RPCDIR}/ypxfrd.x in the make targets with ${.ALLSRC} . MFC after: 1 week Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=314462
Diffstat (limited to 'usr.sbin/rpc.ypxfrd')
-rw-r--r--usr.sbin/rpc.ypxfrd/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpc.ypxfrd/Makefile b/usr.sbin/rpc.ypxfrd/Makefile
index 903ac164bbf1..0e98d83638e0 100644
--- a/usr.sbin/rpc.ypxfrd/Makefile
+++ b/usr.sbin/rpc.ypxfrd/Makefile
@@ -1,6 +1,6 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../usr.sbin/ypserv
+.PATH: ${SRCTOP}/usr.sbin/ypserv
PROG= rpc.ypxfrd
MAN= rpc.ypxfrd.8
@@ -15,14 +15,14 @@ LIBADD= rpcsvc
CLEANFILES= ypxfrd_svc.c ypxfrd.h
-RPCDIR= ${.CURDIR}/../../include/rpcsvc
+RPCDIR= ${SRCTOP}/include/rpcsvc
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
# We need to remove the 'static' keyword from _rpcsvcstate so that
# ypxfrd_main.c can see it.
ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
rm -f ${.TARGET}
- ${RPCGEN} -m ${RPCDIR}/ypxfrd.x | \
+ ${RPCGEN} -m ${.ALLSRC} | \
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
# ypxfrd_xdr.c: ${RPCDIR}/ypxfrd.x
@@ -31,6 +31,6 @@ ypxfrd_svc.c: ${RPCDIR}/ypxfrd.x
ypxfrd.h: ${RPCDIR}/ypxfrd.x
rm -f ${.TARGET}
- ${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypxfrd.x
+ ${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
.include <bsd.prog.mk>