Makefile revision 1.10
11.10Scgd#	$Id: Makefile,v 1.10 1994/06/14 02:45:56 cgd Exp $
21.1Sbrezak
31.8SjtcRPCDIR=		${.CURDIR}/src
41.8Sjtc.PATH:		${RPCDIR}
51.4Sbrezak
61.10ScgdRPCSRCS=	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.9Sjtc	    cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
241.9Sjtc		install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
251.9Sjtc		${DESTDIR}/usr/include/rpcsvc; \
261.8Sjtc	done
271.8Sjtc	@for i in $(RPCSRCS); do \
281.9Sjtc	    cmp -s ${RPCDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i > /dev/null 2>&1 || \
291.9Sjtc		install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RPCDIR}/$$i \
301.9Sjtc		${DESTDIR}/usr/include/rpcsvc; \
311.8Sjtc	done
321.8Sjtc
331.8Sjtc# new suffixes have to go afterwards, because bsd.lib.mk clears them
341.8Sjtc.include <bsd.lib.mk>
351.8Sjtc.SUFFIXES: .x .c .h
361.8Sjtc
371.8Sjtc.x.c:
381.8Sjtc	@echo generating $@...
391.8Sjtc	@rpcgen -c ${.IMPSRC} -o ${.TARGET}
401.8Sjtc
411.8Sjtc.x.h:
421.8Sjtc	@echo generating $@...
431.8Sjtc	@rpcgen -h ${.IMPSRC} -o ${.TARGET}
44