Makefile revision 17901
1#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
2#	$Id: Makefile,v 1.8 1996/06/05 03:47:18 wpaul Exp $
3
4.SUFFIXES: .x
5
6RPCCOM = rpcgen
7BINMODE = 444
8
9HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
10      rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
11      ypxfrd.h
12XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
13      rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
14      yppasswd.x yp.x ypxfrd.x
15HFILES= yp_prot.h ypclnt.h
16
17CLEANFILES+= ${HDRS}
18
19all: ${HDRS}
20
21install: ${HDRS}
22	cd ${.CURDIR} && \
23		${INSTALL} -C -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
24		${HFILES} ${DESTDIR}/usr/include/rpcsvc
25	cd ${.CURDIR} && \
26		${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
27		${XFILES} ${DESTDIR}/usr/include/rpcsvc
28	${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${HDRS} \
29		${DESTDIR}/usr/include/rpcsvc
30
31.x.h:
32	cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
33
34.include <bsd.prog.mk>
35