diff --git a/buildconf b/buildconf
index 742d38a7485a55a51c7f5be0132acda7568e4963..2258fe27eb376c965bf1569c5f35efbffbd1b63c 100755
--- a/buildconf
+++ b/buildconf
@@ -5,9 +5,7 @@ die(){
 	exit
 }
 
-MAKEFILES=`find . -name Makefile.am | sed 's/\.am$//'`
-
-automake $MAKEFILES || die "The command 'automake $MAKEFILES' failed"
+automake          || die "The command 'automake $MAKEFILES' failed"
 aclocal           || die "The command 'aclocal' failed"
 autoheader        || die "The command 'autoheader' failed"
 autoconf          || die "The command 'autoconf' failed"