Makefile revision 16123
11832Swollman# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC 216123Swpaul# $Id: Makefile,v 1.7 1995/08/15 20:06:50 joerg Exp $ 31832Swollman 41832Swollman.SUFFIXES: .x 51832Swollman 61832SwollmanRPCCOM = rpcgen 710071SjoergBINMODE = 444 81832Swollman 916123SwpaulHDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \ 1016123Swpaul rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \ 1116123Swpaul ypxfrd.h 121832SwollmanXFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \ 131832Swollman rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \ 1416123Swpaul yppasswd.x yp.x ypxfrd.x 151832SwollmanHFILES= yp_prot.h ypclnt.h 161832Swollman 171832SwollmanCLEANFILES+= ${HDRS} 189374SwollmanRPCDIR= ${DESTDIR}/usr/include/rpcsvc 199374SwollmanEVERYTHING= $(XFILES) $(HFILES) 201832Swollman 211832Swollmanall: ${HDRS} 221832Swollman 231832Swollmaninstall: all 242367Sbde @${ECHO} "Installing RPC service header and definition files" 259374Swollman.for i in $(EVERYTHING) 269374Swollman @cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \ 279970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 289375Swollman $i ${RPCDIR}; \ 299374Swollman $(ECHO) $i) 309374Swollman.endfor 319374Swollman.for i in $(HDRS) 329374Swollman @cmp -s $i $(RPCDIR)/$i || \ 339970Sbde (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ 349375Swollman $i ${RPCDIR}; \ 359374Swollman $(ECHO) $i) 369374Swollman.endfor 371832Swollman 381832Swollman.x.h: 399374Swollman cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@ 401832Swollman 411832Swollman.include <bsd.prog.mk> 429374Swollman 439374Swollman 449374Swollman 459374Swollman 46