From 0e91d9cf669d8259e0c6fbef418558dcc3472070 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 31 Aug 2014 23:35:22 +0000 Subject: [PATCH] build: fix an infinite loop in recursive rules. --- build/autotools/common.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/autotools/common.am b/build/autotools/common.am index 0a97cf1c..be155a80 100644 --- a/build/autotools/common.am +++ b/build/autotools/common.am @@ -14,8 +14,9 @@ EXTRA_DIST = lol_recursive_rule = \ @if test -n "$(SUBDIRS)"; then for subdir in $(SUBDIRS); do \ - ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $(patsubst %-recursive, %, $@)) || exit 1; \ - done; fi + if test "$$subdir" != "."; then \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $(patsubst %-recursive, %, $@)) || exit 1; \ + fi; done; fi bench: bench-recursive bench-recursive: