download: Use 'with-imported-modules'.
[jackhill/guix/guix.git] / emacs / local.mk
1 # GNU Guix --- Functional package management for GNU
2 # Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
3 # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
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
20 AUTOLOADS = %D%/guix-autoloads.el
21
22 ELFILES = \
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
58
59 if HAVE_EMACS
60
61 dist_lisp_DATA = $(ELFILES)
62
63 nodist_lisp_DATA = \
64 %D%/guix-config.el \
65 $(AUTOLOADS)
66
67 $(AUTOLOADS): $(ELFILES)
68 $(AM_V_EMACS)$(EMACS) --batch --eval \
69 "(let ((backup-inhibited t) \
70 (generated-autoload-file \
71 (expand-file-name \"$(AUTOLOADS)\" \"$(builddir)\"))) \
72 (update-directory-autoloads \
73 (expand-file-name \"emacs\" \"$(srcdir)\")))"
74
75 CLEANFILES += $(AUTOLOADS)
76
77 endif HAVE_EMACS