Commit | Line | Data |
---|---|---|
575ed8d5 | 1 | # GNU Guix --- Functional package management for GNU |
931c132a | 2 | # Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> |
575ed8d5 AE |
3 | # Copyright © 2013 Andreas Enge <andreas@enge.fr> |
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 | ||
a9424c08 LC |
20 | info_TEXINFOS = doc/guix.texi |
21 | EXTRA_DIST += \ | |
c6fabc5e | 22 | doc/emacs.texi \ |
a9424c08 LC |
23 | doc/fdl-1.3.texi \ |
24 | doc/images/bootstrap-graph.dot \ | |
02c72d16 LC |
25 | doc/images/bootstrap-graph.eps \ |
26 | doc/images/bootstrap-graph.pdf | |
575ed8d5 | 27 | |
931c132a LC |
28 | # Bundle this file so that makeinfo finds it in out-of-source-tree builds. |
29 | BUILT_SOURCES += doc/os-config.texi | |
30 | EXTRA_DIST += doc/os-config.texi | |
31 | MAINTAINERCLEANFILES = doc/os-config.texi | |
32 | ||
33 | doc/os-config.texi: gnu/system/os-config.tmpl | |
34 | $(MKDIR_P) "`dirname "$@"`" | |
35 | cp "$<" "$@" | |
36 | ||
575ed8d5 | 37 | infoimagedir = $(infodir)/images |
a9424c08 | 38 | dist_infoimage_DATA = doc/images/bootstrap-graph.png |
575ed8d5 AE |
39 | |
40 | # Try hard to obtain an image size and aspect that's reasonable for inclusion | |
41 | # in an Info or PDF document. | |
54461ce7 LC |
42 | DOT_OPTIONS = \ |
43 | -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \ | |
575ed8d5 AE |
44 | -Nfontsize=9 -Nheight=.1 -Nwidth=.1 |
45 | ||
46 | .dot.png: | |
cb9e50f6 | 47 | $(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$@.tmp" |
575ed8d5 AE |
48 | mv "$@.tmp" "$@" |
49 | ||
54461ce7 LC |
50 | .dot.pdf: |
51 | $(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$@.tmp" | |
52 | mv "$@.tmp" "$@" | |
53 | ||
575ed8d5 | 54 | .dot.eps: |
cb9e50f6 | 55 | $(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$@.tmp" |
575ed8d5 AE |
56 | mv "$@.tmp" "$@" |
57 | ||
a9424c08 LC |
58 | # We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake) |
59 | # Extending"). Using the `-local' rules is imperfect, because they may be | |
60 | # triggered after the main rule. Oh, well. | |
02c72d16 LC |
61 | pdf-local: $(top_srcdir)/doc/images/bootstrap-graph.pdf |
62 | info-local: $(top_srcdir)/doc/images/bootstrap-graph.png | |
63 | ps-local: $(top_srcdir)/doc/images/bootstrap-graph.eps |