]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Bug fix in "look for Makefile.am" code.
authorTom Tromey <tromey@redhat.com>
Thu, 16 Nov 1995 08:10:20 +0000 (08:10 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 16 Nov 1995 08:10:20 +0000 (08:10 +0000)
automake.in

index aecd0341d10ea5a7370c017fbce71bd46a0390d6..61b25a1e9df5b5d92cfb320016f004ac5cce28b5 100755 (executable)
@@ -72,10 +72,12 @@ test -n "$mfiles" || {
    mfiles=*/Makefile.am
    if test "$mfiles" = '*/Makefile.am'; then
       mfiles=
+   else
+      mfiles=`echo "$mfiles" | sed 's/\.am//g'`
    fi
 
    if test -f Makefile.am; then
-      mfiles="Makefile.am $mfiles"
+      mfiles="Makefile $mfiles"
    fi
 }