aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-18 14:27:31 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-18 17:05:51 +0100
commit408e900fe42ee28387aed6526c3f4fbc9e502cdc (patch)
tree6d4d264cebc27abee45bd16acb028365fbcaf7a6
parente19114df7a5bd158751f14ec19fd11542f84f33e (diff)
downloadqpdf-408e900fe42ee28387aed6526c3f4fbc9e502cdc.tar.zst
Fix qpdf-manual build dependencies
-rw-r--r--manual/build.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/manual/build.mk b/manual/build.mk
index 89285b94..6d38bc3a 100644
--- a/manual/build.mk
+++ b/manual/build.mk
@@ -14,17 +14,19 @@ ifeq ($(BUILD_PDF),1)
TARGETS_manual += doc/qpdf-manual.pdf
endif
+MANUAL_DEPS = $(wildcard manual/*.rst) manual/conf.py
+
# Prevent targets that run $(SPHINX) from running in parallel by using
# order-only dependencies (the dependencies listed after the |) to
# avoid clashes in temporary files that cause the build to fail with
# the error "_pickle.UnpicklingError: pickle data was truncated"
-$(HTML_TARGET): manual/index.rst
+$(HTML_TARGET): $(MANUAL_DEPS)
$(SPHINX) -M html manual $(DOC_OUT) -W
-$(S_HTML_TARGET): manual/index.rst | $(HTML_TARGET)
+$(S_HTML_TARGET): $(MANUAL_DEPS) | $(HTML_TARGET)
$(SPHINX) -M singlehtml manual $(DOC_OUT) -W
-$(PDF_TARGET): manual/index.rst | $(S_HTML_TARGET) $(HTML_TARGET)
+$(PDF_TARGET): $(MANUAL_DEPS) | $(S_HTML_TARGET) $(HTML_TARGET)
$(SPHINX) -M latexpdf manual $(DOC_OUT) -W
# This depends on sphinx-build's singlehtml target creating index.html