diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index f40e8443cf306b9057e36ae52cd12208769eb827..53676bd2daad04ea916cdf882a3ce14c07585659 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -302,6 +302,11 @@ (define-public magit
        #:test-target "test"
        #:tests? #f                          ;'tests/magit-tests.el' is missing
 
+       #:make-flags (list
+                     ;; Don't put .el files in a sub-directory.
+                     (string-append "lispdir=" (assoc-ref %outputs "out")
+                                    "/share/emacs/site-lisp"))
+
        #:phases
        (modify-phases %standard-phases
          (replace