Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin Make the rpcsvc dependencies work a bit better.



details:   https://anonhg.NetBSD.org/src/rev/fa6b0a575bb9
branches:  trunk
changeset: 487716:fa6b0a575bb9
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Jun 12 01:57:25 2000 +0000

description:
Make the rpcsvc dependencies work a bit better.

diffstat:

 usr.sbin/rpc.bootparamd/Makefile |  16 ++++++++++------
 usr.sbin/rpc.lockd/Makefile      |  16 ++++++++++------
 usr.sbin/rpc.statd/Makefile      |  16 ++++++++++------
 3 files changed, 30 insertions(+), 18 deletions(-)

diffs (90 lines):

diff -r 59344bd1bdf7 -r fa6b0a575bb9 usr.sbin/rpc.bootparamd/Makefile
--- a/usr.sbin/rpc.bootparamd/Makefile  Sun Jun 11 23:47:56 2000 +0000
+++ b/usr.sbin/rpc.bootparamd/Makefile  Mon Jun 12 01:57:25 2000 +0000
@@ -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 @@
 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
diff -r 59344bd1bdf7 -r fa6b0a575bb9 usr.sbin/rpc.lockd/Makefile
--- a/usr.sbin/rpc.lockd/Makefile       Sun Jun 11 23:47:56 2000 +0000
+++ b/usr.sbin/rpc.lockd/Makefile       Mon Jun 12 01:57:25 2000 +0000
@@ -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 @@
 
 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
diff -r 59344bd1bdf7 -r fa6b0a575bb9 usr.sbin/rpc.statd/Makefile
--- a/usr.sbin/rpc.statd/Makefile       Sun Jun 11 23:47:56 2000 +0000
+++ b/usr.sbin/rpc.statd/Makefile       Mon Jun 12 01:57:25 2000 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index