From: Jim Meyering Date: Sun, 11 Nov 2007 19:08:52 +0000 (+0100) Subject: Remove racy commands to build scripts in bin/ and tests/. X-Git-Tag: v2.62~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=576a8cbe1364da5fdad83562314b9f97f70b5cb8;p=thirdparty%2Fautoconf.git Remove racy commands to build scripts in bin/ and tests/. * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/ are guaranteed to be built, remove the rules that tried to build them. Before, with a parallel build, these rules could lead to two processes writing tests/wrapper.in concurrently. --- diff --git a/ChangeLog b/ChangeLog index 6b053cec..770b9268 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-11-12 Jim Meyering + Remove racy commands to build scripts in bin/ and tests/. + * man/Makefile.am (.x.1): Now that scripts in bin/ and tests/ + are guaranteed to be built, remove the rules that tried to build + them. Before, with a parallel build, these rules could lead to + two processes writing tests/wrapper.in concurrently. + Build in man/ only *after* building in bin/ and tests/. * Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE) in both bin/ and tests/. diff --git a/man/Makefile.am b/man/Makefile.am index 406893a1..9485d28d 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,6 +1,6 @@ # Make Autoconf man pages. -# Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2001, 2004-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 @@ -51,16 +51,7 @@ MOSTLYCLEANFILES = $(srcdir)/*.t SUFFIXES = .x .1 .x.1: - @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 $@" + @echo "Updating man page $@" PATH="$(top_builddir)/tests$(PATH_SEPARATOR)$(top_srcdir)/build-aux$(PATH_SEPARATOR)$$PATH"; \ export PATH; \ $(HELP2MAN) \