summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/emacs.am b/emacs.am
index 30bb02b454..9276c12f36 100644
--- a/emacs.am
+++ b/emacs.am
@@ -54,11 +54,11 @@ ELFILES = \
if HAVE_EMACS
-dist_lisp_DATA = \
- $(ELFILES) \
- $(AUTOLOADS)
+dist_lisp_DATA = $(ELFILES)
-nodist_lisp_DATA = emacs/guix-config.el
+nodist_lisp_DATA = \
+ emacs/guix-config.el \
+ $(AUTOLOADS)
$(AUTOLOADS): $(ELFILES)
$(AM_V_EMACS)$(EMACS) --batch --eval \
@@ -68,4 +68,6 @@ $(AUTOLOADS): $(ELFILES)
(update-directory-autoloads \
(expand-file-name \"emacs\" \"$(srcdir)\")))"
+CLEANFILES += $(AUTOLOADS)
+
endif HAVE_EMACS