Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-03-01 04:24:24 +00:00
parent eca186c4c2
commit c3f658c181

View File

@ -1,8 +1,7 @@
# $FreeBSD$
RPCDIR= ${.CURDIR}/../../include/rpcsvc
.PATH: ${RPCDIR} ${.CURDIR}/../../usr.sbin/ypserv \
${.CURDIR}/../../libexec/ypxfr
RPCDIR= ${SRCTOP}/include/rpcsvc
.PATH: ${RPCDIR} ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr
PROG= yppush
MAN= yppush.8
@ -10,7 +9,7 @@ SRCS= ypxfr_getmap.c yp_dblookup.c yp_error.c ypxfr_misc.c yppush_main.c \
${GENSRCS}
GENSRCS=yp.h yp_clnt.c yppush_svc.c
CFLAGS+= -I. -I${.CURDIR}/../../libexec/ypxfr
CFLAGS+= -I. -I${SRCTOP}/libexec/ypxfr
WARNS?= 2