Makefile revision 9375
150479Speter#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
25266Sgclarkii#	$Id: Makefile,v 1.4 1995/06/29 19:43:00 wollman Exp $
3107543Sscottl
4127644Strhodes.SUFFIXES: .x
519393Swosch
65266SgclarkiiRPCCOM = 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
10XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
11      rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
12      yppasswd.x yp.x
13HFILES= yp_prot.h ypclnt.h
14
15CLEANFILES+= ${HDRS}
16RPCDIR= ${DESTDIR}/usr/include/rpcsvc
17EVERYTHING= $(XFILES) $(HFILES)
18
19all: ${HDRS}
20
21install: all
22	@${ECHO} "Installing RPC service header and definition files"
23.for i in $(EVERYTHING)
24	@cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
25		(install -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
26			$i ${RPCDIR}; \
27			$(ECHO) $i)
28.endfor
29.for i in $(HDRS)
30	@cmp -s $i $(RPCDIR)/$i || \
31		(install -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
32			$i ${RPCDIR}; \
33			$(ECHO) $i)
34.endfor
35
36.x.h:
37	cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
38
39.include <bsd.prog.mk>
40
41
42
43
44