summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2004-01-20 21:06:03 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2004-01-20 21:06:03 +0000
commit39fe03d393b90aeee088e4c25a8ce6a4494f6373 (patch)
tree6d10200c2ee97ba9b5aad8b0caa1ca9cf2229b87 /usr.sbin
parent314a724691a0297dfd4933e2b84d891dac740483 (diff)
explicit .x.[ch] rules to avoid accidental bad matches in /usr/include.
ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypserv/ypserv/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/ypserv/ypserv/Makefile b/usr.sbin/ypserv/ypserv/Makefile
index 706bd0a3d2c..59526795d11 100644
--- a/usr.sbin/ypserv/ypserv/Makefile
+++ b/usr.sbin/ypserv/ypserv/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2003/06/22 23:57:07 maja Exp $
+# $OpenBSD: Makefile,v 1.11 2004/01/20 21:06:02 matthieu Exp $
PROG= ypserv
MAN= ypserv.acl.5 securenet.5 ypserv.8
@@ -22,12 +22,11 @@ all: ypserv
beforedepend: ${HDRS}
ypv1.c: ypv1.h
-.include <bsd.prog.mk>
-.SUFFIXES: .x .c .h
+ypv1.c: ypv1.x
+ rpcgen -C -c ${.CURDIR}/ypv1.x -o ypv1.c
-.x.c:
- rpcgen -C -c ${.IMPSRC} -o ${.TARGET}
+ypv1.h: ypv1.x
+ rpcgen -C -h ${.CURDIR}/ypv1.x -o ypv1.h
-.x.h:
- rpcgen -C -h ${.IMPSRC} -o ${.TARGET}
+.include <bsd.prog.mk>