diff --git a/emacs.am b/emacs.am
index 9276c12f3656a62c33745733b24a3ed026d0eb68..1897e2e9560891f33c990fa30fe975ce6ca702e3 100644
--- a/emacs.am
+++ b/emacs.am
@@ -64,7 +64,7 @@ $(AUTOLOADS): $(ELFILES)
 	$(AM_V_EMACS)$(EMACS) --batch --eval				\
 	  "(let ((backup-inhibited t)					\
 	         (generated-autoload-file				\
-	          (expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\")))	\
+	          (expand-file-name \"$(AUTOLOADS)\" \"$(builddir)\")))	\
 	     (update-directory-autoloads				\
 	      (expand-file-name \"emacs\" \"$(srcdir)\")))"