summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-05-24 13:06:21 +0200
committerMathieu Lirzin <mthl@gnu.org>2016-05-24 13:07:19 +0200
commitc0d2e7b197a3c511eb1bf60b61ee6fdc673e36f4 (patch)
tree5c9c63598239da4d9a9edd20b46af542c981909d /doc
parentcf5f2ad30c37d92083fa52a82fa4c4eb6d56f48a (diff)
build: Use "%D%" in Makefile fragments.
* doc/local.mk: Use "%D%" for the directory of the fragment relative to the base 'Makefile.am'. * emacs/local.mk: Likewise. * gnu/local.mk: Likewise. * nix/local.mk: Likewise.
Diffstat (limited to 'doc')
-rw-r--r--doc/local.mk84
1 files changed, 42 insertions, 42 deletions
diff --git a/doc/local.mk b/doc/local.mk
index b9f07c3590a..64bd2a51699 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -20,49 +20,49 @@
20# You should have received a copy of the GNU General Public License 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/>. 21# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 22
23info_TEXINFOS = doc/guix.texi 23info_TEXINFOS = %D%/guix.texi
24 24
25DOT_FILES = \ 25DOT_FILES = \
26 doc/images/bootstrap-graph.dot \ 26 %D%/images/bootstrap-graph.dot \
27 doc/images/bootstrap-packages.dot \ 27 %D%/images/bootstrap-packages.dot \
28 doc/images/coreutils-graph.dot \ 28 %D%/images/coreutils-graph.dot \
29 doc/images/coreutils-bag-graph.dot \ 29 %D%/images/coreutils-bag-graph.dot \
30 doc/images/service-graph.dot \ 30 %D%/images/service-graph.dot \
31 doc/images/shepherd-graph.dot 31 %D%/images/shepherd-graph.dot
32 32
33DOT_VECTOR_GRAPHICS = \ 33DOT_VECTOR_GRAPHICS = \
34 $(DOT_FILES:%.dot=%.eps) \ 34 $(DOT_FILES:%.dot=%.eps) \
35 $(DOT_FILES:%.dot=%.pdf) 35 $(DOT_FILES:%.dot=%.pdf)
36 36
37EXTRA_DIST += \ 37EXTRA_DIST += \
38 doc/htmlxref.cnf \ 38 %D%/htmlxref.cnf \
39 doc/contributing.texi \ 39 %D%/contributing.texi \
40 doc/emacs.texi \ 40 %D%/emacs.texi \
41 doc/fdl-1.3.texi \ 41 %D%/fdl-1.3.texi \
42 $(DOT_FILES) \ 42 $(DOT_FILES) \
43 $(DOT_VECTOR_GRAPHICS) \ 43 $(DOT_VECTOR_GRAPHICS) \
44 doc/images/coreutils-size-map.eps \ 44 %D%/images/coreutils-size-map.eps \
45 doc/environment-gdb.scm \ 45 %D%/environment-gdb.scm \
46 doc/package-hello.scm 46 %D%/package-hello.scm
47 47
48OS_CONFIG_EXAMPLES_TEXI = \ 48OS_CONFIG_EXAMPLES_TEXI = \
49 doc/os-config-bare-bones.texi \ 49 %D%/os-config-bare-bones.texi \
50 doc/os-config-desktop.texi \ 50 %D%/os-config-desktop.texi \
51 doc/os-config-lightweight-desktop.texi 51 %D%/os-config-lightweight-desktop.texi
52 52
53# Bundle this file so that makeinfo finds it in out-of-source-tree builds. 53# Bundle this file so that makeinfo finds it in out-of-source-tree builds.
54BUILT_SOURCES += $(OS_CONFIG_EXAMPLES_TEXI) 54BUILT_SOURCES += $(OS_CONFIG_EXAMPLES_TEXI)
55EXTRA_DIST += $(OS_CONFIG_EXAMPLES_TEXI) 55EXTRA_DIST += $(OS_CONFIG_EXAMPLES_TEXI)
56MAINTAINERCLEANFILES = $(OS_CONFIG_EXAMPLES_TEXI) 56MAINTAINERCLEANFILES = $(OS_CONFIG_EXAMPLES_TEXI)
57 57
58doc/os-config-%.texi: gnu/system/examples/%.tmpl 58%D%/os-config-%.texi: gnu/system/examples/%.tmpl
59 $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \ 59 $(AM_V_GEN)$(MKDIR_P) "`dirname $@`"; \
60 cp "$<" "$@" 60 cp "$<" "$@"
61 61
62infoimagedir = $(infodir)/images 62infoimagedir = $(infodir)/images
63dist_infoimage_DATA = \ 63dist_infoimage_DATA = \
64 $(DOT_FILES:%.dot=%.png) \ 64 $(DOT_FILES:%.dot=%.png) \
65 doc/images/coreutils-size-map.png 65 %D%/images/coreutils-size-map.png
66 66
67# Try hard to obtain an image size and aspect that's reasonable for inclusion 67# Try hard to obtain an image size and aspect that's reasonable for inclusion
68# in an Info or PDF document. 68# in an Info or PDF document.
@@ -86,13 +86,13 @@ DOT_OPTIONS = \
86 $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \ 86 $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
87 mv "$@-tmp.eps" "$@" 87 mv "$@-tmp.eps" "$@"
88 88
89# We cannot add new dependencies to `doc/guix.pdf' & co. (info "(automake) 89# We cannot add new dependencies to `%D%/guix.pdf' & co. (info "(automake)
90# Extending"). Using the `-local' rules is imperfect, because they may be 90# Extending"). Using the `-local' rules is imperfect, because they may be
91# triggered after the main rule. Oh, well. 91# triggered after the main rule. Oh, well.
92pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf) 92pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
93info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png) 93info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
94ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \ 94ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps) \
95 $(top_srcdir)/doc/images/coreutils-size-map.eps 95 $(top_srcdir)/%D%/images/coreutils-size-map.eps
96dvi-local: ps-local 96dvi-local: ps-local
97 97
98## ----------- ## 98## ----------- ##
@@ -106,25 +106,25 @@ dvi-local: ps-local
106# They are built in $(srcdir) like info manuals. 106# They are built in $(srcdir) like info manuals.
107 107
108sub_commands_mans = \ 108sub_commands_mans = \
109 $(srcdir)/doc/guix-archive.1 \ 109 $(srcdir)/%D%/guix-archive.1 \
110 $(srcdir)/doc/guix-build.1 \ 110 $(srcdir)/%D%/guix-build.1 \
111 $(srcdir)/doc/guix-challenge.1 \ 111 $(srcdir)/%D%/guix-challenge.1 \
112 $(srcdir)/doc/guix-download.1 \ 112 $(srcdir)/%D%/guix-download.1 \
113 $(srcdir)/doc/guix-edit.1 \ 113 $(srcdir)/%D%/guix-edit.1 \
114 $(srcdir)/doc/guix-environment.1 \ 114 $(srcdir)/%D%/guix-environment.1 \
115 $(srcdir)/doc/guix-gc.1 \ 115 $(srcdir)/%D%/guix-gc.1 \
116 $(srcdir)/doc/guix-hash.1 \ 116 $(srcdir)/%D%/guix-hash.1 \
117 $(srcdir)/doc/guix-import.1 \ 117 $(srcdir)/%D%/guix-import.1 \
118 $(srcdir)/doc/guix-lint.1 \ 118 $(srcdir)/%D%/guix-lint.1 \
119 $(srcdir)/doc/guix-package.1 \ 119 $(srcdir)/%D%/guix-package.1 \
120 $(srcdir)/doc/guix-publish.1 \ 120 $(srcdir)/%D%/guix-publish.1 \
121 $(srcdir)/doc/guix-pull.1 \ 121 $(srcdir)/%D%/guix-pull.1 \
122 $(srcdir)/doc/guix-refresh.1 \ 122 $(srcdir)/%D%/guix-refresh.1 \
123 $(srcdir)/doc/guix-size.1 \ 123 $(srcdir)/%D%/guix-size.1 \
124 $(srcdir)/doc/guix-system.1 124 $(srcdir)/%D%/guix-system.1
125 125
126dist_man1_MANS = \ 126dist_man1_MANS = \
127 $(srcdir)/doc/guix.1 \ 127 $(srcdir)/%D%/guix.1 \
128 $(sub_commands_mans) 128 $(sub_commands_mans)
129 129
130gen_man = \ 130gen_man = \
@@ -133,14 +133,14 @@ gen_man = \
133 133
134HELP2MANFLAGS = --source=GNU --info-page=$(PACKAGE_TARNAME) 134HELP2MANFLAGS = --source=GNU --info-page=$(PACKAGE_TARNAME)
135 135
136$(srcdir)/doc/guix.1: scripts/guix.in $(sub_commands_mans) 136$(srcdir)/%D%/guix.1: scripts/guix.in $(sub_commands_mans)
137 -$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1` 137 -$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1`
138 138
139# The 'case' ensures the man pages are only generated if the corresponding 139# The 'case' ensures the man pages are only generated if the corresponding
140# source script (the first prerequisite) has been changed. The $(GOBJECTS) 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 141# prerequisite is solely meant to force these docs to be made only after all
142# Guile modules have been compiled. 142# Guile modules have been compiled.
143$(srcdir)/doc/guix-%.1: guix/scripts/%.scm $(GOBJECTS) 143$(srcdir)/%D%/guix-%.1: guix/scripts/%.scm $(GOBJECTS)
144 -@case '$?' in \ 144 -@case '$?' in \
145 *$<*) $(AM_V_P) && set -x || echo " HELP2MAN $@"; \ 145 *$<*) $(AM_V_P) && set -x || echo " HELP2MAN $@"; \
146 $(gen_man) --output="$@" "guix $*";; \ 146 $(gen_man) --output="$@" "guix $*";; \
@@ -149,9 +149,9 @@ $(srcdir)/doc/guix-%.1: guix/scripts/%.scm $(GOBJECTS)
149 149
150if BUILD_DAEMON 150if BUILD_DAEMON
151 151
152dist_man1_MANS += $(srcdir)/doc/guix-daemon.1 152dist_man1_MANS += $(srcdir)/%D%/guix-daemon.1
153 153
154$(srcdir)/doc/guix-daemon.1: nix/nix-daemon/guix-daemon.cc 154$(srcdir)/%D%/guix-daemon.1: nix/nix-daemon/guix-daemon.cc
155 -$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1` 155 -$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1`
156 156
157endif 157endif