Makefile revision 10071
11832Swollman# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC 210071Sjoerg# $Id: Makefile,v 1.6 1995/08/06 12:23:10 bde Exp $ 31832Swollman 41832Swollman.SUFFIXES: .x 51832Swollman 61832SwollmanRPCCOM = rpcgen 710071SjoergBINMODE = 444 81832Swollman 91832SwollmanHDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h\ 101832Swollman rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h 111832SwollmanXFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \ 121832Swollman rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \ 131832Swollman yppasswd.x yp.x 141832SwollmanHFILES= yp_prot.h ypclnt.h 151832Swollman 161832SwollmanCLEANFILES+= ${HDRS} 179374SwollmanRPCDIR= ${DESTDIR}/usr/include/rpcsvc 189374SwollmanEVERYTHING= $(XFILES) $(HFILES) 191832Swollman 201832Swollmanall: ${HDRS} 211832Swollman 221832Swollmaninstall: all 232367Sbde @${ECHO} "Installing RPC service header and definition files" 249374Swollman.for i in $(EVERYTHING) 259374Swollman @cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \ 269970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 279375Swollman $i ${RPCDIR}; \ 289374Swollman $(ECHO) $i) 299374Swollman.endfor 309374Swollman.for i in $(HDRS) 319374Swollman @cmp -s $i $(RPCDIR)/$i || \ 329970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 339375Swollman $i ${RPCDIR}; \ 349374Swollman $(ECHO) $i) 359374Swollman.endfor 361832Swollman 371832Swollman.x.h: 389374Swollman cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@ 391832Swollman 401832Swollman.include <bsd.prog.mk> 419374Swollman 429374Swollman 439374Swollman 449374Swollman 45