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}/ypupdate_prot.x in the make targets with ${.ALLSRC} . MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
e938182bf5
commit
1a32a8fe6c
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../ypserv ${.CURDIR}/../../libexec/ypxfr
|
||||
.PATH: ${SRCTOP}/usr.sbin/ypserv ${SRCTOP}/libexec/ypxfr
|
||||
|
||||
PROG= rpc.ypupdated
|
||||
MAN=
|
||||
@ -9,7 +9,7 @@ SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \
|
||||
yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c
|
||||
|
||||
#CFLAGS+= -DYP
|
||||
CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr
|
||||
CFLAGS+= -I${SRCTOP}/usr.sbin/ypserv -I. -I${SRCTOP}/libexec/ypxfr
|
||||
|
||||
WARNS?= 1
|
||||
|
||||
@ -24,10 +24,10 @@ RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -I -C
|
||||
# ypupdated_main.c can see it.
|
||||
ypupdate_prot_svc.c: ${RPCDIR}/ypupdate_prot.x
|
||||
rm -f ${.TARGET}
|
||||
${RPCGEN} -m ${RPCDIR}/ypupdate_prot.x | \
|
||||
${RPCGEN} -m ${.ALLSRC} | \
|
||||
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
|
||||
|
||||
ypupdate_prot.h: ${RPCDIR}/ypupdate_prot.x
|
||||
${RPCGEN} -h -o ${.TARGET} ${RPCDIR}/ypupdate_prot.x
|
||||
${RPCGEN} -h -o ${.TARGET} ${.ALLSRC}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user