2007-11-12 Jim Meyering <meyering@redhat.com>
+ 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/.
# 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
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) \