1994-08-04 21:01:57 +02:00
|
|
|
# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
|
1994-08-28 19:44:10 +02:00
|
|
|
# $Id: Makefile,v 1.1 1994/08/04 19:01:44 wollman Exp $
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
.SUFFIXES: .x
|
|
|
|
|
|
|
|
RPCCOM = rpcgen
|
|
|
|
|
|
|
|
HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h\
|
|
|
|
rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h
|
|
|
|
XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
|
|
|
|
rex.x rnusers.x rquota.x rstat.x rwall.x sm_inter.x spray.x \
|
|
|
|
yppasswd.x yp.x
|
|
|
|
HFILES= yp_prot.h ypclnt.h
|
|
|
|
|
|
|
|
CLEANFILES+= ${HDRS}
|
|
|
|
|
|
|
|
all: ${HDRS}
|
|
|
|
|
|
|
|
install: all
|
1994-08-28 19:44:10 +02:00
|
|
|
@${ECHO} "Creating RPC service headers directory"
|
1994-08-04 21:01:57 +02:00
|
|
|
@/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
@-mkdir ${DESTDIR}/usr/include/rpcsvc
|
1994-08-28 19:44:10 +02:00
|
|
|
@${ECHO} "Installing RPC service header and definition files"
|
1994-08-04 21:01:57 +02:00
|
|
|
@for i in $(XFILES); do \
|
|
|
|
(install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
|
|
|
|
@for i in $(HDRS); do \
|
|
|
|
(install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done
|
|
|
|
@for i in $(HFILES); do \
|
|
|
|
(install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done
|
|
|
|
@chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
@chmod -R a-w ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
|
|
|
|
.x.h:
|
1994-08-28 19:44:10 +02:00
|
|
|
@${ECHO} generating $@...
|
1994-08-04 21:01:57 +02:00
|
|
|
@CURPWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o $$CURPWD/$@
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|