summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-08-30 07:24:54 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-08-30 07:24:54 +0000
commitce2273087615dc3c0a555ceacc49319892e9bce7 (patch)
treee91e777a021af02a161ea53981809f03ccf502b3 /include
parent9f3da246ba78a127e2da30cea2b07fd276beb952 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/rpcsvc/Makefile35
1 files changed, 21 insertions, 14 deletions
diff --git a/include/rpcsvc/Makefile b/include/rpcsvc/Makefile
index e72a622d7c91..2517df84c24e 100644
--- a/include/rpcsvc/Makefile
+++ b/include/rpcsvc/Makefile
@@ -1,9 +1,10 @@
# from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC
-# $Id: Makefile,v 1.2 1994/08/28 17:44:10 bde Exp $
+# $Id: Makefile,v 1.3 1995/03/18 07:04:23 rgrimes Exp $
.SUFFIXES: .x
RPCCOM = rpcgen
+BINMODE = 444
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
@@ -13,25 +14,31 @@ XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
HFILES= yp_prot.h ypclnt.h
CLEANFILES+= ${HDRS}
+RPCDIR= ${DESTDIR}/usr/include/rpcsvc
+EVERYTHING= $(XFILES) $(HFILES)
all: ${HDRS}
install: all
- @${ECHO} "Creating RPC service headers directory"
- @/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc
- @-mkdir ${DESTDIR}/usr/include/rpcsvc
@${ECHO} "Installing RPC service header and definition files"
- @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 755 ${DESTDIR}/usr/include/rpcsvc
+.for i in $(EVERYTHING)
+ @cd ${.CURDIR}; cmp -s $i $(RPCDIR)/$i || \
+ (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
+ $i ${RPCDIR}; \
+ $(ECHO) $i)
+.endfor
+.for i in $(HDRS)
+ @cmp -s $i $(RPCDIR)/$i || \
+ (${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \
+ $i ${RPCDIR}; \
+ $(ECHO) $i)
+.endfor
.x.h:
- @${ECHO} generating $@...
- @CURPWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o $$CURPWD/$@
+ cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@
.include <bsd.prog.mk>
+
+
+
+