From 3ff93e603ec3a5eb0327585597171e37d44c64cb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 16 Nov 1995 08:08:51 +0000 Subject: [PATCH] If no arguments given, look for all Makefile.am's in this directory and in immediate subdirs --- automake.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/automake.in b/automake.in index 26daa7a4..aecd0341 100755 --- a/automake.in +++ b/automake.in @@ -67,8 +67,18 @@ while test $# -gt 0; do shift done -# FIXME in this case, should look for Makefile.am, */Makefile.am and -# use those. +test -n "$mfiles" || { + # Look around. + mfiles=*/Makefile.am + if test "$mfiles" = '*/Makefile.am'; then + mfiles= + fi + + if test -f Makefile.am; then + mfiles="Makefile.am $mfiles" + fi +} + test -n "$mfiles" || { echo "${usage}" 1>&2 exit 1 -- 2.43.5