Makefile revision 16123
190792Sgshapiro#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
2261363Sgshapiro#	$Id: Makefile,v 1.7 1995/08/15 20:06:50 joerg Exp $
390792Sgshapiro
490792Sgshapiro.SUFFIXES: .x
590792Sgshapiro
690792SgshapiroRPCCOM = rpcgen
790792SgshapiroBINMODE = 444
890792Sgshapiro
990792SgshapiroHDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
1090792Sgshapiro      rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
11266692Sgshapiro      ypxfrd.h
1290792SgshapiroXFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
1390792Sgshapiro      rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
1490792Sgshapiro      yppasswd.x yp.x ypxfrd.x
1590792SgshapiroHFILES= yp_prot.h ypclnt.h
1690792Sgshapiro
1790792SgshapiroCLEANFILES+= ${HDRS}
1890792SgshapiroRPCDIR= ${DESTDIR}/usr/include/rpcsvc
1990792SgshapiroEVERYTHING= $(XFILES) $(HFILES)
20203004Sgshapiro
21203004Sgshapiroall: ${HDRS}
22203004Sgshapiro
23203004Sgshapiroinstall: all
2490792Sgshapiro	@${ECHO} "Installing RPC service header and definition files"
2590792Sgshapiro.for i in $(EVERYTHING)
2690792Sgshapiro	@cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
2790792Sgshapiro		(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
2890792Sgshapiro			$i ${RPCDIR}; \
2990792Sgshapiro			$(ECHO) $i)
3090792Sgshapiro.endfor
3190792Sgshapiro.for i in $(HDRS)
3290792Sgshapiro	@cmp -s $i $(RPCDIR)/$i || \
33141858Sgshapiro		(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
34141858Sgshapiro			$i ${RPCDIR}; \
35141858Sgshapiro			$(ECHO) $i)
3690792Sgshapiro.endfor
3790792Sgshapiro
3890792Sgshapiro.x.h:
3990792Sgshapiro	cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
4090792Sgshapiro
4190792Sgshapiro.include <bsd.prog.mk>
4290792Sgshapiro
4390792Sgshapiro
4490792Sgshapiro
4590792Sgshapiro
4690792Sgshapiro