diff options
author | wosch <wosch@FreeBSD.org> | 1997-12-21 19:15:12 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-12-21 19:15:12 +0000 |
commit | 05604036c1fb48d8724db559aeb981813b41afa8 (patch) | |
tree | b1ad5de571a8dfab66f5e6a8beadb0ceae3a37ca /gnu/usr.bin/gzip | |
parent | 7fb46d49218076b8a6b7f0ddeb7afd3d18187df8 (diff) | |
download | FreeBSD-src-05604036c1fb48d8724db559aeb981813b41afa8.zip FreeBSD-src-05604036c1fb48d8724db559aeb981813b41afa8.tar.gz |
When called as `zgrep', the -Z argument is assumed. Make a
link from zgrep to grep.
Pointed out by: Tim Vanderhoek <hoek@hwcn.org> and
Mike Smith <mike@smith.net.au>
Diffstat (limited to 'gnu/usr.bin/gzip')
-rw-r--r-- | gnu/usr.bin/gzip/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gnu/usr.bin/gzip/Makefile b/gnu/usr.bin/gzip/Makefile index 6529e5e..31af912 100644 --- a/gnu/usr.bin/gzip/Makefile +++ b/gnu/usr.bin/gzip/Makefile @@ -1,36 +1,37 @@ # @(#)Makefile 5.3 (Berkeley) 5/12/90 -# $Id: Makefile,v 1.15 1997/06/29 06:03:28 pst Exp $ +# $Id: Makefile,v 1.16 1997/12/20 19:20:32 wosch Exp $ PROG= gzip SRCS= gzip.c zip.c deflate.c trees.c bits.c unzip.c inflate.c util.c \ crypt.c lzw.c unlzw.c unlzh.c unpack.c getopt.c match.S MAN1= gzexe.1 gzip.1 zdiff.1 zforce.1 zmore.1 znew.1 zgrep.1 CFLAGS+=-DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 +GREP_LIBZ?= YES + MLINKS= gzip.1 gunzip.1 gzip.1 zcat.1 gzip.1 gzcat.1 MLINKS+= zgrep.1 zfgrep.1 zgrep.1 zegrep.1 MLINKS+= zdiff.1 zcmp.1 LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip LINKS+= ${BINDIR}/gzip ${BINDIR}/gzcat LINKS+= ${BINDIR}/gzip ${BINDIR}/zcat +LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp +.if defined(GREP_LIBZ) && empty(GREP_LIBZ) LINKS+= ${BINDIR}/zgrep ${BINDIR}/zegrep LINKS+= ${BINDIR}/zgrep ${BINDIR}/zfgrep -LINKS+= ${BINDIR}/zdiff ${BINDIR}/zcmp -NOSHARED?=yes +.endif -GREP_LIBZ?= YES -.if defined(GREP_LIBZ) && !empty(GREP_LIBZ) -ZGREP=zgrep.libz -.else +NOSHARED?=yes ZGREP=zgrep.getopt -.endif beforeinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/zforce ${.CURDIR}/gzexe ${.CURDIR}/znew \ ${.CURDIR}/zmore ${.CURDIR}/zdiff \ ${DESTDIR}${BINDIR} +.if defined(GREP_LIBZ) && empty(GREP_LIBZ) ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/${ZGREP} ${DESTDIR}${BINDIR}/zgrep +.endif match.o: ${.CURDIR}/match.S $(CPP) ${.CURDIR}/match.S >_match.s |