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? :-)
This commit is contained in:
Peter Wemm 1996-08-19 01:21:46 +00:00
parent fd86e51e98
commit 7b9dff76d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17657

View File

@ -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 <bsd.lib.mk>