From: Paul Eggert Date: Wed, 2 Feb 2005 00:25:41 +0000 (+0000) Subject: (.x.1): Go back to the simple solution, but take X-Git-Tag: AUTOCONF-2.59c~475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dcc2928e72ea9f72f242ea20938f65136a57b08;p=thirdparty%2Fautoconf.git (.x.1): Go back to the simple solution, but take care to echo the commands, so the user knows what's going on. --- diff --git a/man/Makefile.am b/man/Makefile.am index e73e99cdf..8284c195b 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -50,9 +50,14 @@ $(srcdir)/config.sub.1: $(top_srcdir)/config/config.sub SUFFIXES = .x .1 .x.1: - @case $* in \ - config.* | */config.*) ;; \ - *) $(MAKE) $*-bin-prereq $*-tests-prereq;; \ + @program=`expr "/$*" : '.*/\(.*\)'` && \ + case $$program in \ + config.*) ;; \ + *) \ + for dir in $(top_builddir)/bin $(top_builddir)/tests; do \ + echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \ + (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \ + done;; \ esac echo "Updating man page $@" PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \ @@ -60,19 +65,4 @@ SUFFIXES = .x .1 $(HELP2MAN) \ --include=$*.x \ --include=$(srcdir)/common.x \ - --output=$@ `echo "$*" | sed 's,^$(srcdir)/,,'` - - -# While building man page prerequisites, avoid explicit dependencies -# on any file that is not distributed, so that installers do not -# unnecessarily attempt to run $(HELP2MAN), a tool that they may not -# have. - -$(dist_man_MANS:.1=-bin-prereq) $(dist_man_MANS:.1=-tests-prereq): - @$(MAKE) $(AM_MAKEFLAGS) \ - builddir=$(top_builddir)/`expr 'X$@' : '.*-\([^-]*\)-prereq$$'` \ - program=`expr '/$@' : '.*/\([^-]*\)'` \ - implicit-man-prerequisites - -implicit-man-prerequisites: - cd $(builddir) && $(MAKE) $(AM_MAKEFLAGS) $(program) + --output=$@ `echo '$*' | sed 's,.*/,,'`