mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-24 10:01:47 +02:00
build: Don't generate Emacs autoloads when Emacs is unavailable.
Reported by Andreas Enge. * configure.ac: Define 'HAVE_EMACS' Automake conditional. * emacs.am ($(AUTOLOADS)): Wrap in 'if HAVE_EMACS'.
This commit is contained in:
@@ -34,6 +34,8 @@ dist_lisp_DATA = \
|
||||
nodist_lisp_DATA = \
|
||||
emacs/guix-init.el
|
||||
|
||||
if HAVE_EMACS
|
||||
|
||||
$(AUTOLOADS): $(ELFILES)
|
||||
$(EMACS) --batch --eval \
|
||||
"(let ((backup-inhibited t) \
|
||||
@@ -41,3 +43,5 @@ $(AUTOLOADS): $(ELFILES)
|
||||
(expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\"))) \
|
||||
(update-directory-autoloads \
|
||||
(expand-file-name \"emacs\" \"$(srcdir)\")))"
|
||||
|
||||
endif HAVE_EMACS
|
||||
|
||||
Reference in New Issue
Block a user