Makefile revision 28524
11832Swollman#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
228524Sjmg#	$Id: Makefile,v 1.16 1997/05/28 16:26:05 wpaul Exp $
31832Swollman
41832Swollman.SUFFIXES: .x
51832Swollman
61832SwollmanRPCCOM = rpcgen
71832Swollman
826208SwpaulHDRS= key_prot.h klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
916123Swpaul      rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
1026208Swpaul      ypxfrd.h ypupdate_prot.h nis.h nis_cache.h nis_callback.h \
1126208Swpaul      bootparam_prot.h crypt.h
1226208SwpaulXFILES= bootparam_prot.x key_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 \
1426208Swpaul      yppasswd.x yp.x ypxfrd.x ypupdate_prot.x nis.x nis_cache.x nis_object.x \
1526208Swpaul      nis_callback.x crypt.x
1626208SwpaulHFILES= yp_prot.h ypclnt.h nis_db.h nis_tags.h nislib.h
171832Swollman
181832SwollmanCLEANFILES+= ${HDRS}
191832Swollman
201832Swollmanall: ${HDRS}
211832Swollman
2228524Sjmgbeforeinstall: installhdrs
2326248Swpaul	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
2417953Speter		${HFILES:S;^;${.CURDIR}/;} \
2517953Speter		${XFILES:S;^;${.CURDIR}/;} \
2628524Sjmg		${DESTDIR}/usr/include/rpcsvc
2728524Sjmg
2828524Sjmginstallhdrs:
2928524Sjmg	cd ${.OBJDIR}; \
3028524Sjmg	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
3117953Speter		${HDRS} \
3217901Speter		${DESTDIR}/usr/include/rpcsvc
3328524Sjmg	
341832Swollman.x.h:
3517953Speter	${RPCCOM} -h ${.IMPSRC} -o ${.TARGET}
361832Swollman
371832Swollman.include <bsd.prog.mk>
38