1996-05-10 09:03:06 +04:00
|
|
|
# $NetBSD: Makefile,v 1.17 1996/05/10 05:03:06 cgd Exp $
|
1993-06-02 23:51:29 +04:00
|
|
|
|
1993-06-03 21:07:56 +04:00
|
|
|
|
1994-06-14 06:45:56 +04:00
|
|
|
RPCSRCS= bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
|
1994-01-21 02:04:13 +03:00
|
|
|
nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
|
|
|
|
sm_inter.x spray.x yp.x yppasswd.x
|
|
|
|
SRCS= ${RPCSRCS:R:S/$/.c/g}
|
|
|
|
HDRS= ${RPCSRCS:R:S/$/.h/g}
|
|
|
|
CLEANFILES+= ${SRCS} ${HDRS}
|
|
|
|
|
|
|
|
LIB= rpcsvc
|
|
|
|
NOMAN=
|
|
|
|
NOPIC=
|
|
|
|
|
|
|
|
all: ${HDRS}
|
|
|
|
beforedepend: ${HDRS}
|
|
|
|
|
1996-04-25 05:22:08 +04:00
|
|
|
includes: ${HDRS}
|
1995-01-12 22:18:41 +03:00
|
|
|
install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
|
1996-05-10 09:03:06 +04:00
|
|
|
${DESTDIR}/usr/include/rpcsvc
|
1994-01-21 02:04:13 +03:00
|
|
|
@for i in $(HDRS); do \
|
1996-05-10 09:03:06 +04:00
|
|
|
j="cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
1996-04-30 00:52:52 +04:00
|
|
|
${DESTDIR}/usr/include/rpcsvc"; \
|
1996-05-10 09:03:06 +04:00
|
|
|
echo $$j; \
|
|
|
|
eval "$$j"; \
|
1994-01-21 02:04:13 +03:00
|
|
|
done
|
1996-04-30 00:52:52 +04:00
|
|
|
@cd ${.CURDIR}; for i in $(RPCSRCS); do \
|
1996-05-10 09:03:06 +04:00
|
|
|
j="cmp -s $(.CURDIR)/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \
|
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
1996-04-30 00:52:52 +04:00
|
|
|
${DESTDIR}/usr/include/rpcsvc"; \
|
1996-05-10 09:03:06 +04:00
|
|
|
echo $$j; \
|
|
|
|
eval "$$j"; \
|
1994-01-21 02:04:13 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
# new suffixes have to go afterwards, because bsd.lib.mk clears them
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.SUFFIXES: .x .c .h
|
|
|
|
|
|
|
|
.x.c:
|
1996-04-30 01:11:24 +04:00
|
|
|
rpcgen -c ${.IMPSRC} -o ${.TARGET}
|
1994-01-21 02:04:13 +03:00
|
|
|
|
|
|
|
.x.h:
|
1996-04-30 01:11:24 +04:00
|
|
|
rpcgen -h ${.IMPSRC} -o ${.TARGET}
|