emacs: Add code to run 'dot' program.
[jackhill/guix/guix.git] / emacs.am
1 # GNU Guix --- Functional package management for GNU
2 # Copyright © 2014, 2015 Alex Kost <alezost@gmail.com>
3 #
4 # This file is part of GNU Guix.
5 #
6 # GNU Guix is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or (at
9 # your option) any later version.
10 #
11 # GNU Guix is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 AUTOLOADS = emacs/guix-autoloads.el
20
21 ELFILES = \
22 emacs/guix-backend.el \
23 emacs/guix-base.el \
24 emacs/guix-command.el \
25 emacs/guix-emacs.el \
26 emacs/guix-external.el \
27 emacs/guix-help-vars.el \
28 emacs/guix-history.el \
29 emacs/guix-info.el \
30 emacs/guix-init.el \
31 emacs/guix-list.el \
32 emacs/guix-messages.el \
33 emacs/guix-pcomplete.el \
34 emacs/guix-popup.el \
35 emacs/guix-prettify.el \
36 emacs/guix-profiles.el \
37 emacs/guix-read.el \
38 emacs/guix-utils.el \
39 emacs/guix.el
40
41 if HAVE_EMACS
42
43 dist_lisp_DATA = \
44 $(ELFILES) \
45 $(AUTOLOADS)
46
47 nodist_lisp_DATA = emacs/guix-config.el
48
49 $(AUTOLOADS): $(ELFILES)
50 $(EMACS) --batch --eval \
51 "(let ((backup-inhibited t) \
52 (generated-autoload-file \
53 (expand-file-name \"$(AUTOLOADS)\" \"$(srcdir)\"))) \
54 (update-directory-autoloads \
55 (expand-file-name \"emacs\" \"$(srcdir)\")))"
56
57 endif HAVE_EMACS