Makefile revision 2367
11832Swollman# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC 22367Sbde# $Id: Makefile,v 1.1 1994/08/04 19:01:44 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} 161832Swollman 171832Swollmanall: ${HDRS} 181832Swollman 191832Swollmaninstall: all 202367Sbde @${ECHO} "Creating RPC service headers directory" 211832Swollman @/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc 221832Swollman @-mkdir ${DESTDIR}/usr/include/rpcsvc 232367Sbde @${ECHO} "Installing RPC service header and definition files" 241832Swollman @for i in $(XFILES); do \ 251832Swollman (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done 261832Swollman @for i in $(HDRS); do \ 271832Swollman (install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done 281832Swollman @for i in $(HFILES); do \ 291832Swollman (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done 301832Swollman @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc 311832Swollman @chmod -R a-w ${DESTDIR}/usr/include/rpcsvc 321832Swollman 331832Swollman.x.h: 342367Sbde @${ECHO} generating $@... 351832Swollman @CURPWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o $$CURPWD/$@ 361832Swollman 371832Swollman.include <bsd.prog.mk> 38