xref: /freebsd/include/rpcsvc/Makefile (revision 8e6b01171e30297084bb0b4457c4183c2746aacc)
1#	from: @(#)Makefile	2.3 88/08/11 4.0 RPCSRC
2#	$Id: Makefile,v 1.6 1995/08/06 12:23:10 bde 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
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
14HFILES= yp_prot.h ypclnt.h
15
16CLEANFILES+= ${HDRS}
17RPCDIR= ${DESTDIR}/usr/include/rpcsvc
18EVERYTHING= $(XFILES) $(HFILES)
19
20all: ${HDRS}
21
22install: all
23	@${ECHO} "Installing RPC service header and definition files"
24.for i in $(EVERYTHING)
25	@cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
26		(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
27			$i ${RPCDIR}; \
28			$(ECHO) $i)
29.endfor
30.for i in $(HDRS)
31	@cmp -s $i $(RPCDIR)/$i || \
32		(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
33			$i ${RPCDIR}; \
34			$(ECHO) $i)
35.endfor
36
37.x.h:
38	cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
39
40.include <bsd.prog.mk>
41
42
43
44
45