Make the rpcsvc dependencies work a bit better.

This commit is contained in:
mycroft 2000-06-12 01:57:25 +00:00
parent 3868d5e04c
commit 45d698dd33
3 changed files with 30 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 1999/06/06 02:47:47 thorpej Exp $
# $NetBSD: Makefile,v 1.17 2000/06/12 01:57:25 mycroft Exp $
PROG= rpc.bootparamd
SRCS= bootparamd.c bootparam_prot_svc.c
@ -9,11 +9,15 @@ CPPFLAGS+=-DYP
DPADD= ${LIBRPCSVC} ${LIBUTIL}
LDADD= -lrpcsvc -lutil
bootparam_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
rm -f bootparam_prot.x
ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x .
rm -f bootparam_prot.h
ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h .
bootparam_prot.x: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
bootparam_prot.h: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
bootparam_prot_svc.c: bootparam_prot.x bootparam_prot.h
rpcgen -C -L -m -o ${.TARGET} bootparam_prot.x
CLEANFILES += bootparam_prot_svc.c bootparam_prot.x bootparam_prot.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2000/06/07 14:34:40 bouyer Exp $
# $NetBSD: Makefile,v 1.9 2000/06/12 01:57:26 mycroft Exp $
PROG= rpc.lockd
SRCS= nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c
@ -12,11 +12,15 @@ LDADD= -lrpcsvc -lutil
CLEANFILES= nlm_prot_svc.c nlm_prot.x nlm_prot.h test
nlm_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
rm -f nlm_prot.x
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x .
rm -f nlm_prot.h
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.h .
nlm_prot.x: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
nlm_prot.h: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.h
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
nlm_prot_svc.c: nlm_prot.x nlm_prot.h
rpcgen -C -L -m -o ${.TARGET} nlm_prot.x
test: ${.CURDIR}/test.c

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 1999/06/06 02:52:16 thorpej Exp $
# $NetBSD: Makefile,v 1.8 2000/06/12 01:57:26 mycroft Exp $
PROG= rpc.statd
SRCS= sm_inter_svc.c statd.c stat_proc.c
@ -12,11 +12,15 @@ LDADD= -lrpcsvc -lutil
CLEANFILES+= sm_inter_svc.c sm_inter.x sm_inter.h test
sm_inter_svc.c: ${RPCSRC} ${DESTDIR}/usr/include/rpcsvc/sm_inter.x
rm -f sm_inter.x
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.x .
rm -f sm_inter.h
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.h .
sm_inter.x: ${DESTDIR}/usr/include/rpcsvc/sm_inter.x
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
sm_inter.h: ${DESTDIR}/usr/include/rpcsvc/sm_inter.h
rm -f ${.TARGET}
ln -s ${.ALLSRC} ${.TARGET}
sm_inter_svc.c: sm_inter.x sm_inter.h
rpcgen -C -L -m -o ${.TARGET} sm_inter.x
test: ${.CURDIR}/test.c