]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(.x.1): Go back to the simple solution, but take
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Feb 2005 00:25:41 +0000 (00:25 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Feb 2005 00:25:41 +0000 (00:25 +0000)
care to echo the commands, so the user knows what's going on.

man/Makefile.am

index e73e99cdf631a27c444a967374dfb9a0f11afeb3..8284c195b3c150527c805c2ed05432babc19767a 100644 (file)
@@ -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,.*/,,'`