* tests/Makefile.am (mktests.stamp): New witness.
(TESTSUITE_GENERATED_AT): Use it.
(CLEANFILES): Clean the witness.
* tests/.cvsignore (mktests.stamp): Ignore the witness.
2007-09-13 Eric Blake <ebb9@byu.net>
+ Avoid parallel 'make check' issue.
+ * tests/Makefile.am (mktests.stamp): New witness.
+ (TESTSUITE_GENERATED_AT): Use it.
+ (CLEANFILES): Clean the witness.
+ * tests/.cvsignore (mktests.stamp): Ignore the witness.
+
Document another awk pitfall.
* doc/autoconf.texi (Limitations of Usual Tools) <awk>: Document
limitation of field variables in END.
## Make Autoconf tests.
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
# Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
$(autoconfdir)/types.m4 \
$(autoconfdir)/programs.m4
-$(TESTSUITE_GENERATED_AT): mktests.sh $(AUTOCONF_FILES)
+$(TESTSUITE_GENERATED_AT): mktests.stamp
+## Recover from the removal of $@
+ @if test -f $@; then :; else \
+ rm -f mktests.stamp; \
+ $(MAKE) $(AM_MAKEFLAGS) mktests.stamp; \
+ fi
+
+mktests.stamp : mktests.sh $(AUTOCONF_FILES)
+ @rm -f mktests.tmp
+ @touch mktests.tmp
cd $(srcdir) && ./mktests.sh \
`echo " "$(AUTOCONF_FILES) | sed 's, [^ ]*/, ../lib/autoconf/,g'`
+ @mv -f mktests.tmp $@
+CLEANFILES += mktests.stamp mktests.tmp
## maintainer-check ##
@SET_MAKE@
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
# Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
wrappers = autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames
# The hairy heredoc is more robust than using echo.
-CLEANFILES = wrapper.in $(wrappers) expr
+CLEANFILES = wrapper.in $(wrappers) mktests.stamp mktests.tmp expr
edit = sed \
-e 's|@wrap_program[@]|$@|g' \
-e 's|@abs_top_srcdir[@]|@abs_top_srcdir@|g' \
installcheck-local: atconfig atlocal $(TESTSUITE)
$(SHELL) $(TESTSUITE) AUTOTEST_PATH="$(bindir)" $(TESTSUITEFLAGS)
-$(TESTSUITE_GENERATED_AT): mktests.sh $(AUTOCONF_FILES)
+$(TESTSUITE_GENERATED_AT): mktests.stamp
+ @if test -f $@; then :; else \
+ rm -f mktests.stamp; \
+ $(MAKE) $(AM_MAKEFLAGS) mktests.stamp; \
+ fi
+
+mktests.stamp : mktests.sh $(AUTOCONF_FILES)
+ @rm -f mktests.tmp
+ @touch mktests.tmp
cd $(srcdir) && ./mktests.sh \
`echo " "$(AUTOCONF_FILES) | sed 's, [^ ]*/, ../lib/autoconf/,g'`
+ @mv -f mktests.tmp $@
maintainer-check: maintainer-check-posix maintainer-check-c++
expr: