X-Git-Url: https://git.cworth.org/git?p=gzip;a=blobdiff_plain;f=Makefile.am;h=5799d753936e96c2a4d45e33e05286ae1179e560;hp=917641d4ee042642651c2b32a8df393f03787827;hb=HEAD;hpb=e7921f54c622e3b32e525f345bc34308821e4ae0 diff --git a/Makefile.am b/Makefile.am index 917641d..5799d75 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # Make gzip (GNU zip). -# Copyright (C) 1999, 2001, 2002, 2006 Free Software Foundation, Inc. +# Copyright (C) 1999, 2001, 2002, 2006, 2007 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ man_MANS = gunzip.1 gzexe.1 gzip.1 \ EXTRA_DIST = $(ACINCLUDE_INPUTS) $(man_MANS) \ algorithm.doc amiga/match.a amiga/Makefile.gcc amiga/Makefile.sasc \ amiga/tailor.c amiga/utime.h atari/Makefile.st crypt.h \ - gzexe.in gzip.doc gzip.h lzw.h msdos/match.asm msdos/tailor.c \ + gunzip.in gzexe.in gzip.doc gzip.h lzw.h msdos/match.asm msdos/tailor.c \ msdos/gzip.prj msdos/doturboc.bat msdos/Makefile.msc msdos/Makefile.bor \ msdos/Makefile.djg nt/Makefile.nt os2/gzip.def os2/Makefile.os2 \ os2/gzip16.def primos/include/errno.h primos/include/fcntl.h \ @@ -35,11 +35,12 @@ EXTRA_DIST = $(ACINCLUDE_INPUTS) $(man_MANS) \ primos/primos.c primos/ci.opts revision.h sample/makecrc.c \ sample/ztouch sample/add.c sample/sub.c sample/zread.c sample/zfile \ tailor.h vms/Makefile.mms vms/gzip.hlp vms/vms.c vms/Readme.vms \ - vms/Makefile.vms vms/Makefile.gcc vms/makegzip.com zdiff.in \ - zforce.in zgrep.in zless.in zmore.in znew.in + vms/Makefile.vms vms/Makefile.gcc vms/makegzip.com zcat.in zcmp.in zdiff.in \ + zegrep.in zfgrep.in zforce.in zgrep.in zless.in zmore.in znew.in bin_PROGRAMS = gzip -bin_SCRIPTS = gzexe zdiff zgrep zforce zless zmore znew +bin_SCRIPTS = gunzip gzexe zcat zcmp zdiff \ + zegrep zfgrep zforce zgrep zless zmore znew gzip_SOURCES = \ bits.c crypt.c deflate.c gzip.c inflate.c lzw.c \ trees.c unlzh.c unlzw.c unpack.c unzip.c util.c zip.c @@ -48,11 +49,14 @@ gzip_LDADD = lib/libgzip.a gzip.doc: gzip.1 groff -man -Tascii $(srcdir)/gzip.1 | col -b | uniq >$@ +gzip.doc.gz: gzip.doc + gzip <$? >$@ + SUFFIXES = .in .in: sed \ -e 's|/bin/sh|$(SHELL)|g' \ - -e 's|BINDIR|$(bindir)|g' \ + -e 's|BINDIR|$${GZIP_BINDIR-'\''$(bindir)'\''}|g' \ -e 's|[@]VERSION@|$(VERSION)|g' \ $(srcdir)/$@.in >$@ chmod a+x $@ @@ -60,7 +64,13 @@ SUFFIXES = .in # A simple test, just of gzip -- more of a sanity check than anything else. FILES_TO_CHECK = $(bin_SCRIPTS) $(gzip_LDADD) \ $(top_srcdir)/ChangeLog $(top_srcdir)/configure $(top_srcdir)/gzip.c -check-local: $(FILES_TO_CHECK) +check-local: $(FILES_TO_CHECK) gzip.doc.gz + { test '$(srcdir)' != . || GZIP_BINDIR=. ./zdiff -c gzip.doc.gz; } + GZIP_BINDIR=. ./zdiff -c $(srcdir)/gzip.doc $(srcdir)/gzip.doc + GZIP_BINDIR=. ./zdiff $(srcdir)/gzip.doc gzip.doc.gz + GZIP_BINDIR=. ./zdiff -c - $(srcdir)/gzip.doc /dev/null for file in $(FILES_TO_CHECK); do \ ./gzip -cv -- "$$file" | ./gzip -d | cmp - "$$file" || exit; \ done @@ -71,9 +81,7 @@ install-exec-hook remove-installed-links: @for prog_ext in $(bin_PROGRAMS) $(bin_SCRIPTS); do \ prog=`echo "$$prog_ext"|sed 's/$(EXEEXT)$$//'`; \ case $$prog in \ - gzip) aliases='gunzip zcat';; \ - zdiff) aliases='zcmp';; \ - zgrep) aliases='zegrep zfgrep';; \ + gunzip) aliases='uncompress';; \ *) continue;; \ esac; \ transform='$(transform)'; \ @@ -98,5 +106,5 @@ uninstall-local: remove-installed-links MAINTAINERCLEANFILES = gzip.doc -MOSTLYCLEANFILES = _match.i match_.s _match.S \ - gzexe zdiff zforce zgrep zless zmore znew +MOSTLYCLEANFILES = _match.i match_.s _match.S gzip.doc.gz \ + gunzip gzexe zcat zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew