From 7b9dff76d5953f61d78120fac85eee923a79ca6f Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 19 Aug 1996 01:21:46 +0000 Subject: [PATCH] Clean up the beforeinstall target a bit more, bde pointed out that the old one was a mess. (I was in a 'talk' session at the time, can you tell? :-) --- lib/libz/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/libz/Makefile b/lib/libz/Makefile index 4c78c6e9046..afebefa4576 100644 --- a/lib/libz/Makefile +++ b/lib/libz/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.1 1996/08/18 17:59:48 peter Exp $ +# $Id: Makefile,v 1.2 1996/08/18 23:52:20 peter Exp $ # MAINTAINER=peter@FreeBSD.org @@ -17,8 +17,10 @@ SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \ zutil.c inflate.c infblock.c inftrees.c infcodes.c infutil.c inffast.c beforeinstall: - ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} ${.CURDIR}/zlib.h \ - ${.CURDIR}/zconf.h ${DESTDIR}/usr/include +.for hdr in zconf.h zlib.h + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${hdr} \ + ${DESTDIR}/usr/include +.endfor minigzip: all minigzip.o $(CC) -o minigzip minigzip.o -L. -lz @@ -31,5 +33,4 @@ test: example minigzip (export LD_LIBRARY_PATH=. ; \ echo hello world | ./minigzip | ./minigzip -d ) - .include