From d78e540666bf77579c80e8f6331db6a37ef8ede9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 4 Oct 2007 22:25:07 +0000 Subject: [PATCH] * Makefile.am (gzip.doc.gz, check-local): Depend on $(bin_PROGRAMS). (gzip.doc.gz): Use our gzip, not the system-installed one. Problem reported by Chris Staub in . --- ChangeLog | 7 +++++++ Makefile.am | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5f686f2..c7a0ceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-04 Paul Eggert + + * Makefile.am (gzip.doc.gz, check-local): Depend on $(bin_PROGRAMS). + (gzip.doc.gz): Use our gzip, not the system-installed one. + Problem reported by Chris Staub in + . + 2007-07-03 Paul Eggert * COPYING: Update to GPLv3. All uses changed. diff --git a/Makefile.am b/Makefile.am index 373160b..6e168ab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,8 +49,8 @@ gzip_LDADD = lib/libgzip.a gzip.doc: gzip.1 groff -man -Tascii $(srcdir)/gzip.1 | col -b | uniq >$@ -gzip.doc.gz: gzip.doc - gzip <$? >$@ +gzip.doc.gz: gzip.doc $(bin_PROGRAMS) + ./gzip $@ SUFFIXES = .in .in: @@ -64,7 +64,7 @@ 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) gzip.doc.gz +check-local: $(FILES_TO_CHECK) $(bin_PROGRAMS) gzip.doc.gz { test '$(srcdir)' != . || ./zdiff --__bindir . -c gzip.doc.gz; } ./zdiff --__bindir . -c $(srcdir)/gzip.doc $(srcdir)/gzip.doc ./zdiff --__bindir . $(srcdir)/gzip.doc gzip.doc.gz -- 2.47.2