From 62217f350b411963ee6a6a24becdaac2f7abcb92 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 30 Aug 1996 01:53:09 +0000 Subject: [PATCH] cmp -s || install -c ==> install -C, use a .for loop --- lib/libmd/Makefile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index d476582c6d72..822852973758 100644 --- a/lib/libmd/Makefile +++ b/lib/libmd/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.19 1996/02/09 20:57:53 phk Exp $ +# $Id: Makefile,v 1.20 1996/02/09 22:44:44 phk Exp $ LIB= md NOPIC= true @@ -83,14 +83,9 @@ test: md2.ref md4.ref md5.ref beforedepend: md2hl.c md4hl.c md5hl.c beforeinstall: - -cd ${.CURDIR}; cmp -s md2.h ${DESTDIR}/usr/include/md2.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 md2.h \ - ${DESTDIR}/usr/include - -cd ${.CURDIR}; cmp -s md4.h ${DESTDIR}/usr/include/md4.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 md4.h \ - ${DESTDIR}/usr/include - -cd ${.CURDIR}; cmp -s md5.h ${DESTDIR}/usr/include/md5.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 md5.h \ - ${DESTDIR}/usr/include +.for i in md2.h md4.h md5.h + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/$i \ + ${DESTDIR}/usr/include +.endfor .include