build: Add 'EMACS' silent rule.
[jackhill/guix/guix.git] / emacs.am
CommitLineData
457f60fa 1# GNU Guix --- Functional package management for GNU
71310ccc 2# Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
71ed439b 3# Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
457f60fa
AK
4#
5# This file is part of GNU Guix.
6#
7# GNU Guix is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or (at
10# your option) any later version.
11#
12# GNU Guix is distributed in the hope that it will be useful, but
13# WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20AUTOLOADS = emacs/guix-autoloads.el
21
22ELFILES = \
23 emacs/guix-backend.el \
24 emacs/guix-base.el \
34850cd5 25 emacs/guix-build-log.el \
6c40b7b7 26 emacs/guix-buffer.el \
9b0afb0d 27 emacs/guix-command.el \
187f80c6 28 emacs/guix-devel.el \
12f2490a 29 emacs/guix-emacs.el \
73ce3c19 30 emacs/guix-entry.el \
70fabd49 31 emacs/guix-external.el \
f029f8a7 32 emacs/guix-geiser.el \
c74cd6cc 33 emacs/guix-guile.el \
26476d58 34 emacs/guix-help-vars.el \
457f60fa 35 emacs/guix-history.el \
32950fc8
AK
36 emacs/guix-hydra.el \
37 emacs/guix-hydra-build.el \
38 emacs/guix-hydra-jobset.el \
457f60fa 39 emacs/guix-info.el \
bd6163d1 40 emacs/guix-init.el \
71310ccc 41 emacs/guix-license.el \
457f60fa 42 emacs/guix-list.el \
fae3d347 43 emacs/guix-messages.el \
00a8dae2 44 emacs/guix-pcomplete.el \
1f13861b 45 emacs/guix-popup.el \
9a130e19 46 emacs/guix-prettify.el \
bd6163d1 47 emacs/guix-profiles.el \
d007d8a1 48 emacs/guix-read.el \
7735c503 49 emacs/guix-ui.el \
c80ce104
AK
50 emacs/guix-ui-package.el \
51 emacs/guix-ui-generation.el \
67cedc4b 52 emacs/guix-ui-system-generation.el \
c80ce104 53 emacs/guix-utils.el
457f60fa 54
a9638ac4
LC
55if HAVE_EMACS
56
457f60fa
AK
57dist_lisp_DATA = \
58 $(ELFILES) \
59 $(AUTOLOADS)
60
bd6163d1 61nodist_lisp_DATA = emacs/guix-config.el
457f60fa
AK
62
63$(AUTOLOADS): $(ELFILES)
71ed439b 64 $(AM_V_EMACS)$(EMACS) --batch --eval \
457f60fa
AK
65 "(let ((backup-inhibited t) \
66 (generated-autoload-file \
67 (expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\"))) \
68 (update-directory-autoloads \
69 (expand-file-name \"emacs\" \"$(srcdir)\")))"
596fcbf7
LC
70
71endif HAVE_EMACS