1994-08-04 21:01:57 +02:00
|
|
|
# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
|
1995-08-15 22:06:50 +02:00
|
|
|
# $Id: Makefile,v 1.6 1995/08/06 12:23:10 bde Exp $
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
.SUFFIXES: .x
|
|
|
|
|
|
|
|
RPCCOM = rpcgen
|
1995-08-15 22:06:50 +02:00
|
|
|
BINMODE = 444
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
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}
|
1995-06-29 21:43:00 +02:00
|
|
|
RPCDIR= ${DESTDIR}/usr/include/rpcsvc
|
|
|
|
EVERYTHING= $(XFILES) $(HFILES)
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
all: ${HDRS}
|
|
|
|
|
|
|
|
install: all
|
1994-08-28 19:44:10 +02:00
|
|
|
@${ECHO} "Installing RPC service header and definition files"
|
1995-06-29 21:43:00 +02:00
|
|
|
.for i in $(EVERYTHING)
|
|
|
|
@cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
|
1995-08-06 14:24:38 +02:00
|
|
|
(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
|
1995-06-29 21:45:46 +02:00
|
|
|
$i ${RPCDIR}; \
|
1995-06-29 21:43:00 +02:00
|
|
|
$(ECHO) $i)
|
|
|
|
.endfor
|
|
|
|
.for i in $(HDRS)
|
|
|
|
@cmp -s $i $(RPCDIR)/$i || \
|
1995-08-06 14:24:38 +02:00
|
|
|
(${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
|
1995-06-29 21:45:46 +02:00
|
|
|
$i ${RPCDIR}; \
|
1995-06-29 21:43:00 +02:00
|
|
|
$(ECHO) $i)
|
|
|
|
.endfor
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
.x.h:
|
1995-06-29 21:43:00 +02:00
|
|
|
cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
|
1994-08-04 21:01:57 +02:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1995-06-29 21:43:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|