1 # GNU Guix --- Functional package management for GNU
2 # Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
3 # Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
4 # Copyright © 2013 Andreas Enge <andreas@enge.fr>
5 # Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
6 # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
8 # This file is part of GNU Guix.
10 # GNU Guix is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3 of the License, or (at
13 # your option) any later version.
15 # GNU Guix is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 info_TEXINFOS
= doc
/guix.texi
26 doc
/images
/bootstrap-graph.dot \
27 doc
/images
/bootstrap-packages.dot \
28 doc
/images
/coreutils-graph.dot \
29 doc
/images
/coreutils-bag-graph.dot \
30 doc
/images
/service-graph.dot \
31 doc
/images
/shepherd-graph.dot
33 DOT_VECTOR_GRAPHICS
= \
34 $(DOT_FILES
:%.dot
=%.eps
) \
35 $(DOT_FILES
:%.dot
=%.pdf
)
39 doc
/contributing.texi \
43 $(DOT_VECTOR_GRAPHICS
) \
44 doc
/images
/coreutils-size-map.eps \
45 doc
/environment-gdb.scm \
48 OS_CONFIG_EXAMPLES_TEXI
= \
49 doc
/os-config-bare-bones.texi \
50 doc
/os-config-desktop.texi \
51 doc
/os-config-lightweight-desktop.texi
53 # Bundle this file so that makeinfo finds it in out-of-source-tree builds.
54 BUILT_SOURCES
+= $(OS_CONFIG_EXAMPLES_TEXI
)
55 EXTRA_DIST
+= $(OS_CONFIG_EXAMPLES_TEXI
)
56 MAINTAINERCLEANFILES
= $(OS_CONFIG_EXAMPLES_TEXI
)
58 doc
/os-config-
%.texi
: gnu
/system
/examples
/%.tmpl
59 $(AM_V_GEN
)$(MKDIR_P
) "`dirname $@`"; \
62 infoimagedir
= $(infodir)/images
63 dist_infoimage_DATA
= \
64 $(DOT_FILES
:%.dot
=%.png
) \
65 doc
/images
/coreutils-size-map.png
67 # Try hard to obtain an image size and aspect that's reasonable for inclusion
68 # in an Info or PDF document.
70 -Gratio
=.9 -Gnodesep
=.005 -Granksep
=.00005 \
71 -Nfontsize
=9 -Nheight
=.1 -Nwidth
=.1
74 $(AM_V_DOT
)$(DOT
) -Tpng
$(DOT_OPTIONS
) < "$<" > "$(srcdir)/$@.tmp"; \
75 mv
"$(srcdir)/$@.tmp" "$(srcdir)/$@"
78 $(AM_V_DOT
)$(DOT
) -Tpdf
$(DOT_OPTIONS
) < "$<" > "$(srcdir)/$@.tmp"; \
79 mv
"$(srcdir)/$@.tmp" "$(srcdir)/$@"
82 $(AM_V_DOT
)$(DOT
) -Teps
$(DOT_OPTIONS
) < "$<" > "$(srcdir)/$@.tmp"; \
83 mv
"$(srcdir)/$@.tmp" "$(srcdir)/$@"
86 $(AM_V_GEN
)convert
"$<" "$@-tmp.eps"; \
89 # We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake)
90 # Extending"). Using the `-local' rules is imperfect, because they may be
91 # triggered after the main rule. Oh, well.
92 pdf-local
: $(DOT_FILES
=%.dot
=$(top_srcdir
)/%.pdf
)
93 info-local
: $(DOT_FILES
=%.dot
=$(top_srcdir
)/%.png
)
94 ps-local
: $(DOT_FILES
=%.dot
=$(top_srcdir
)/%.eps
) \
95 $(top_srcdir
)/doc
/images
/coreutils-size-map.eps
102 # The man pages are generated using GNU Help2man. In makefiles rules they
103 # depend not on the binary, but on the source files. This usage allows a
104 # manual page to be generated by the maintainer and included in the
105 # distribution without requiring the end-user to have 'help2man' installed.
106 # They are built in $(srcdir) like info manuals.
108 sub_commands_mans
= \
109 $(srcdir)/doc
/guix-archive
.1 \
110 $(srcdir)/doc
/guix-build
.1 \
111 $(srcdir)/doc
/guix-challenge
.1 \
112 $(srcdir)/doc
/guix-download
.1 \
113 $(srcdir)/doc
/guix-edit
.1 \
114 $(srcdir)/doc
/guix-environment
.1 \
115 $(srcdir)/doc
/guix-gc
.1 \
116 $(srcdir)/doc
/guix-hash
.1 \
117 $(srcdir)/doc
/guix-import
.1 \
118 $(srcdir)/doc
/guix-lint
.1 \
119 $(srcdir)/doc
/guix-package
.1 \
120 $(srcdir)/doc
/guix-publish
.1 \
121 $(srcdir)/doc
/guix-pull
.1 \
122 $(srcdir)/doc
/guix-refresh
.1 \
123 $(srcdir)/doc
/guix-size
.1 \
124 $(srcdir)/doc
/guix-system
.1
127 $(srcdir)/doc
/guix
.1 \
131 LANGUAGE
= $(top_builddir
)/pre-inst-env
$(HELP2MAN
) \
134 HELP2MANFLAGS
= --source
=GNU
--info-page
=$(PACKAGE_TARNAME
)
136 $(srcdir)/doc
/guix
.1: scripts
/guix.in
$(sub_commands_mans
)
137 -$(AM_V_HELP2MAN
)$(gen_man
) --output
="$@" `basename "$@" .1`
139 # The 'case' ensures the man pages are only generated if the corresponding
140 # source script (the first prerequisite) has been changed. The $(GOBJECTS)
141 # prerequisite is solely meant to force these docs to be made only after all
142 # Guile modules have been compiled.
143 $(srcdir)/doc
/guix-
%.1: guix
/scripts
/%.scm
$(GOBJECTS
)
145 *$<*) $(AM_V_P
) && set
-x || echo
" HELP2MAN $@"; \
146 $(gen_man
) --output
="$@" "guix $*";; \
152 dist_man1_MANS
+= $(srcdir)/doc
/guix-daemon
.1
154 $(srcdir)/doc
/guix-daemon
.1: nix
/nix-daemon
/guix-daemon.
cc
155 -$(AM_V_HELP2MAN
)$(gen_man
) --output
="$@" `basename "$@" .1`