Makefile revision 1.6
1#	$NetBSD: Makefile,v 1.6 2001/03/21 20:48:09 mycroft Exp $
2#
3
4INCS=	auth.h auth_unix.h clnt.h clnt_soc.h nettype.h \
5	pmap_clnt.h pmap_prot.h pmap_rmt.h raw.h rpc.h \
6	rpc_msg.h rpcb_clnt.h rpcb_prot.h rpcent.h \
7	svc.h svc_auth.h svc_soc.h types.h xdr.h
8
9.ifnmake getrpcgen
10XRPCGEN != (cd ${.CURDIR} && ${MAKE} -B ${MAKEFLAGS} getrpcgen)
11.endif
12
13getrpcgen:
14	@set -- X `type ${RPCGEN}` && shift `expr $$# - 1` && echo "$$1"
15
16rpcb_prot.h:: rpcb_prot.x ${XRPCGEN}
17	${RPCGEN} -C -h ${.CURDIR}/rpcb_prot.x -o ${.TARGET}
18
19CLEANFILES+=	rpcb_prot.h
20
21INCSDIR=	/usr/include/rpc
22
23.include <bsd.prog.mk>
24