Makefile revision 1.8
1#	$Id: Makefile,v 1.8 1994/01/20 23:04:13 jtc Exp $
2
3RPCDIR=		${.CURDIR}/src
4.PATH:		${RPCDIR}
5
6RPCSRCS=	amq.x bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
7		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
8		sm_inter.x spray.x yp.x yppasswd.x
9SRCS=		${RPCSRCS:R:S/$/.c/g}
10HDRS=           ${RPCSRCS:R:S/$/.h/g}
11CLEANFILES+=	${SRCS} ${HDRS}
12
13LIB=		rpcsvc
14NOMAN=
15NOPIC=
16
17all:		${HDRS}
18beforedepend:	${HDRS}
19
20beforeinstall:
21	install -d -o bin -g bin -m 755 ${DESTDIR}/usr/include/rpcsvc
22	@for i in $(HDRS); do \
23		echo install ${COPY} -o bin -g bin -m 444 $$i \
24			${DESTDIR}/usr/include/rpcsvc ; \
25		install ${COPY} -o bin -g bin -m 444 $$i \
26			${DESTDIR}/usr/include/rpcsvc ; \
27	done
28	@for i in $(RPCSRCS); do \
29		echo install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
30			${DESTDIR}/usr/include/rpcsvc ; \
31		install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
32			${DESTDIR}/usr/include/rpcsvc ; \
33	done
34
35# new suffixes have to go afterwards, because bsd.lib.mk clears them
36.include <bsd.lib.mk>
37.SUFFIXES: .x .c .h
38
39.x.c:
40	@echo generating $@...
41	@rpcgen -c ${.IMPSRC} -o ${.TARGET}
42
43.x.h:
44	@echo generating $@...
45	@rpcgen -h ${.IMPSRC} -o ${.TARGET}
46