1# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
2# $Id$
3
4.SUFFIXES: .x
5
6RPCCOM = rpcgen
7
8HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
9 rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
10 ypxfrd.h
11XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
12 rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
13 yppasswd.x yp.x ypxfrd.x
14HFILES= yp_prot.h ypclnt.h
15
16CLEANFILES+= ${HDRS}
17
18all: ${HDRS}
19
20beforeinstall:
21 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
22 ${HFILES:S;^;${.CURDIR}/;} \
23 ${XFILES:S;^;${.CURDIR}/;} \
24 ${HDRS} \
25 ${DESTDIR}/usr/include/rpcsvc
26
27.x.h:
28 ${RPCCOM} -h ${.IMPSRC} -o ${.TARGET}
29
30.include <bsd.prog.mk>
2# $Id$
3
4.SUFFIXES: .x
5
6RPCCOM = rpcgen
7
8HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \
9 rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \
10 ypxfrd.h
11XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
12 rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
13 yppasswd.x yp.x ypxfrd.x
14HFILES= yp_prot.h ypclnt.h
15
16CLEANFILES+= ${HDRS}
17
18all: ${HDRS}
19
20beforeinstall:
21 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
22 ${HFILES:S;^;${.CURDIR}/;} \
23 ${XFILES:S;^;${.CURDIR}/;} \
24 ${HDRS} \
25 ${DESTDIR}/usr/include/rpcsvc
26
27.x.h:
28 ${RPCCOM} -h ${.IMPSRC} -o ${.TARGET}
29
30.include <bsd.prog.mk>