Makefile revision 1.8
11.8Sjtc#	$Id: Makefile,v 1.8 1994/01/20 23:04:13 jtc Exp $
21.1Sbrezak
31.8SjtcRPCDIR=		${.CURDIR}/src
41.8Sjtc.PATH:		${RPCDIR}
51.4Sbrezak
61.8SjtcRPCSRCS=	amq.x bootparam_prot.x klm_prot.x mount.x nfs_prot.x\
71.8Sjtc		nlm_prot.x rex.x rnusers.x rusers.x rquota.x rstat.x rwall.x\
81.8Sjtc		sm_inter.x spray.x yp.x yppasswd.x
91.8SjtcSRCS=		${RPCSRCS:R:S/$/.c/g}
101.8SjtcHDRS=           ${RPCSRCS:R:S/$/.h/g}
111.8SjtcCLEANFILES+=	${SRCS} ${HDRS}
121.8Sjtc
131.8SjtcLIB=		rpcsvc
141.8SjtcNOMAN=
151.8SjtcNOPIC=
161.8Sjtc
171.8Sjtcall:		${HDRS}
181.8Sjtcbeforedepend:	${HDRS}
191.8Sjtc
201.8Sjtcbeforeinstall:
211.8Sjtc	install -d -o bin -g bin -m 755 ${DESTDIR}/usr/include/rpcsvc
221.8Sjtc	@for i in $(HDRS); do \
231.8Sjtc		echo install ${COPY} -o bin -g bin -m 444 $$i \
241.8Sjtc			${DESTDIR}/usr/include/rpcsvc ; \
251.8Sjtc		install ${COPY} -o bin -g bin -m 444 $$i \
261.8Sjtc			${DESTDIR}/usr/include/rpcsvc ; \
271.8Sjtc	done
281.8Sjtc	@for i in $(RPCSRCS); do \
291.8Sjtc		echo install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
301.8Sjtc			${DESTDIR}/usr/include/rpcsvc ; \
311.8Sjtc		install -c -o bin -g bin -m 444 ${RPCDIR}/$$i \
321.8Sjtc			${DESTDIR}/usr/include/rpcsvc ; \
331.8Sjtc	done
341.8Sjtc
351.8Sjtc# new suffixes have to go afterwards, because bsd.lib.mk clears them
361.8Sjtc.include <bsd.lib.mk>
371.8Sjtc.SUFFIXES: .x .c .h
381.8Sjtc
391.8Sjtc.x.c:
401.8Sjtc	@echo generating $@...
411.8Sjtc	@rpcgen -c ${.IMPSRC} -o ${.TARGET}
421.8Sjtc
431.8Sjtc.x.h:
441.8Sjtc	@echo generating $@...
451.8Sjtc	@rpcgen -h ${.IMPSRC} -o ${.TARGET}
46