Makefile revision 9970
11832Swollman# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC 29970Sbde# $Id: Makefile,v 1.5 1995/06/29 19:45:46 wollman Exp $ 31832Swollman 41832Swollman.SUFFIXES: .x 51832Swollman 61832SwollmanRPCCOM = rpcgen 71832Swollman 81832SwollmanHDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h\ 91832Swollman rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h 101832SwollmanXFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \ 111832Swollman rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \ 121832Swollman yppasswd.x yp.x 131832SwollmanHFILES= yp_prot.h ypclnt.h 141832Swollman 151832SwollmanCLEANFILES+= ${HDRS} 169374SwollmanRPCDIR= ${DESTDIR}/usr/include/rpcsvc 179374SwollmanEVERYTHING= $(XFILES) $(HFILES) 181832Swollman 191832Swollmanall: ${HDRS} 201832Swollman 211832Swollmaninstall: all 222367Sbde @${ECHO} "Installing RPC service header and definition files" 239374Swollman.for i in $(EVERYTHING) 249374Swollman @cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \ 259970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 269375Swollman $i ${RPCDIR}; \ 279374Swollman $(ECHO) $i) 289374Swollman.endfor 299374Swollman.for i in $(HDRS) 309374Swollman @cmp -s $i $(RPCDIR)/$i || \ 319970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 329375Swollman $i ${RPCDIR}; \ 339374Swollman $(ECHO) $i) 349374Swollman.endfor 351832Swollman 361832Swollman.x.h: 379374Swollman cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@ 381832Swollman 391832Swollman.include <bsd.prog.mk> 409374Swollman 419374Swollman 429374Swollman 439374Swollman 44