From 7affd2accc6c59ac495fc9942425f4ada071c3c2 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 29 Aug 1996 19:59:48 +0000 Subject: replace cmp -s || install with ${INSTALL} -C, and @for with .for --- include/rpcsvc/Makefile | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) (limited to 'include/rpcsvc') diff --git a/include/rpcsvc/Makefile b/include/rpcsvc/Makefile index 22f49d5..e9acb6d 100644 --- a/include/rpcsvc/Makefile +++ b/include/rpcsvc/Makefile @@ -1,5 +1,5 @@ # from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC -# $Id: Makefile,v 1.7 1995/08/15 20:06:50 joerg Exp $ +# $Id: Makefile,v 1.8 1996/06/05 03:47:18 wpaul Exp $ .SUFFIXES: .x @@ -15,31 +15,20 @@ 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} "Installing RPC service header and definition files" -.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 +install: ${HDRS} + cd ${.CURDIR} && \ + ${INSTALL} -C -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ + ${HFILES} ${DESTDIR}/usr/include/rpcsvc + cd ${.CURDIR} && \ + ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} \ + ${XFILES} ${DESTDIR}/usr/include/rpcsvc + ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${HDRS} \ + ${DESTDIR}/usr/include/rpcsvc .x.h: cd ${.CURDIR} ; ${RPCCOM} -h $*.x -o ${.OBJDIR}/$@ .include - - - - -- cgit v1.1