Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / emacs / local.mk
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
c0d2e7b1 20AUTOLOADS = %D%/guix-autoloads.el
457f60fa
AK
21
22ELFILES = \
c0d2e7b1
ML
23 %D%/guix-about.el \
24 %D%/guix-backend.el \
25 %D%/guix-base.el \
26 %D%/guix-build-log.el \
27 %D%/guix-buffer.el \
28 %D%/guix-command.el \
29 %D%/guix-devel.el \
30 %D%/guix-emacs.el \
31 %D%/guix-entry.el \
32 %D%/guix-external.el \
33 %D%/guix-geiser.el \
34 %D%/guix-guile.el \
35 %D%/guix-help-vars.el \
36 %D%/guix-history.el \
37 %D%/guix-hydra.el \
38 %D%/guix-hydra-build.el \
39 %D%/guix-hydra-jobset.el \
40 %D%/guix-info.el \
41 %D%/guix-init.el \
42 %D%/guix-license.el \
43 %D%/guix-list.el \
44 %D%/guix-location.el \
45 %D%/guix-messages.el \
46 %D%/guix-pcomplete.el \
47 %D%/guix-popup.el \
48 %D%/guix-prettify.el \
49 %D%/guix-profiles.el \
50 %D%/guix-read.el \
51 %D%/guix-ui.el \
52 %D%/guix-ui-license.el \
53 %D%/guix-ui-location.el \
54 %D%/guix-ui-package.el \
55 %D%/guix-ui-generation.el \
56 %D%/guix-ui-system-generation.el \
57 %D%/guix-utils.el
457f60fa 58
a9638ac4
LC
59if HAVE_EMACS
60
54523748 61dist_lisp_DATA = $(ELFILES)
457f60fa 62
54523748 63nodist_lisp_DATA = \
c0d2e7b1 64 %D%/guix-config.el \
54523748 65 $(AUTOLOADS)
457f60fa
AK
66
67$(AUTOLOADS): $(ELFILES)
71ed439b 68 $(AM_V_EMACS)$(EMACS) --batch --eval \
457f60fa
AK
69 "(let ((backup-inhibited t) \
70 (generated-autoload-file \
1ac94ae1 71 (expand-file-name \"$(AUTOLOADS)\" \"$(builddir)\"))) \
457f60fa
AK
72 (update-directory-autoloads \
73 (expand-file-name \"emacs\" \"$(srcdir)\")))"
596fcbf7 74
54523748
ML
75CLEANFILES += $(AUTOLOADS)
76
596fcbf7 77endif HAVE_EMACS