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