summaryrefslogtreecommitdiffstats
path: root/docs/manual/manual.mk
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/manual.mk')
-rw-r--r--docs/manual/manual.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/manual/manual.mk b/docs/manual/manual.mk
index e9e0516deb..0b88fd82a1 100644
--- a/docs/manual/manual.mk
+++ b/docs/manual/manual.mk
@@ -86,6 +86,8 @@ $$(O)/docs/$(1)/$(1).$(6):
to make through the command line: \
'PATH=/path/to/custom-xsltproc/bin:$$$${PATH} make $(1)-pdf')
else
+# -r $(@D) is there for documents that use external filters; those filters
+# generate code at the same location it finds the document's source files.
$$(O)/docs/$(1)/$(1).$(6): $$($(2)_SOURCES) \
$(1)-check-dependencies \
$(1)-check-dependencies-$(5) \
@@ -93,7 +95,7 @@ $$(O)/docs/$(1)/$(1).$(6): $$($(2)_SOURCES) \
$$(Q)$$(call MESSAGE,"Generating $(7) $(1)...")
$$(Q)mkdir -p $$(@D)
$$(Q)a2x $(8) -f $(4) -d book -L \
- $$(foreach r,$$($(2)_RESOURCES),-r $$(r)) \
+ $$(foreach r,$$($(2)_RESOURCES),-r $$(r)) -r $$(@D) \
$$($(2)_$(4)_A2X_OPTS) \
--asciidoc-opts="$$($(2)_$(4)_ASCIIDOC_OPTS)" \
$$(BUILD_DIR)/docs/$(1)/$(1).txt
OpenPOWER on IntegriCloud