* lib/am/check.am (am__check_pre): Save some forks, by analyzing more carefully the value of '$@' to decide how to extract its dirname part, and whether that should be created as a directory.
Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com> --- And this trivial optimization could be squashed in in this series as well. I will push it together with the other patches (by tomorrow). Regards, Stefano lib/am/check.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/am/check.am b/lib/am/check.am index a65fef9..c7bbb9f 100644 --- a/lib/am/check.am +++ b/lib/am/check.am @@ -185,8 +185,12 @@ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ -am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`; \ -test "x$$am__odir" = x. || $(MKDIR_P) "$$am__odir" || exit $$?; \ +case "$@" in \ + */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ + *) am__odir=.;; \ +esac; \ +test "x$$am__odir" = x"." || test -d "$$am__odir" \ + || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ -- 1.7.9.5