This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / include / rpcsvc / Makefile
CommitLineData
557a5416
C
1# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
2# $Id: Makefile,v 1.9 1993/08/01 05:41:52 mycroft Exp $
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
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}
16
17all: ${HDRS}
18
19install: all
20 @echo "Creating RPC service headers directory"
21 @/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc
22 @-mkdir ${DESTDIR}/usr/include/rpcsvc
23 @echo "Installing RPC service header and definition files"
24 @for i in $(XFILES); do \
25 (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
26 @for i in $(HDRS); do \
27 (install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done
28 @for i in $(HFILES); do \
29 (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
30 @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc
31 @chmod -R a-w ${DESTDIR}/usr/include/rpcsvc
32
33.x.h:
34 @echo generating $@...
35 @PWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o $$PWD/$@
36
37.include <bsd.prog.mk>