Commit 408e900fe42ee28387aed6526c3f4fbc9e502cdc

Authored by Jay Berkenbilt
1 parent e19114df

Fix qpdf-manual build dependencies

Showing 1 changed file with 5 additions and 3 deletions
manual/build.mk
@@ -14,17 +14,19 @@ ifeq ($(BUILD_PDF),1) @@ -14,17 +14,19 @@ ifeq ($(BUILD_PDF),1)
14 TARGETS_manual += doc/qpdf-manual.pdf 14 TARGETS_manual += doc/qpdf-manual.pdf
15 endif 15 endif
16 16
  17 +MANUAL_DEPS = $(wildcard manual/*.rst) manual/conf.py
  18 +
17 # Prevent targets that run $(SPHINX) from running in parallel by using 19 # Prevent targets that run $(SPHINX) from running in parallel by using
18 # order-only dependencies (the dependencies listed after the |) to 20 # order-only dependencies (the dependencies listed after the |) to
19 # avoid clashes in temporary files that cause the build to fail with 21 # avoid clashes in temporary files that cause the build to fail with
20 # the error "_pickle.UnpicklingError: pickle data was truncated" 22 # the error "_pickle.UnpicklingError: pickle data was truncated"
21 -$(HTML_TARGET): manual/index.rst 23 +$(HTML_TARGET): $(MANUAL_DEPS)
22 $(SPHINX) -M html manual $(DOC_OUT) -W 24 $(SPHINX) -M html manual $(DOC_OUT) -W
23 25
24 -$(S_HTML_TARGET): manual/index.rst | $(HTML_TARGET) 26 +$(S_HTML_TARGET): $(MANUAL_DEPS) | $(HTML_TARGET)
25 $(SPHINX) -M singlehtml manual $(DOC_OUT) -W 27 $(SPHINX) -M singlehtml manual $(DOC_OUT) -W
26 28
27 -$(PDF_TARGET): manual/index.rst | $(S_HTML_TARGET) $(HTML_TARGET) 29 +$(PDF_TARGET): $(MANUAL_DEPS) | $(S_HTML_TARGET) $(HTML_TARGET)
28 $(SPHINX) -M latexpdf manual $(DOC_OUT) -W 30 $(SPHINX) -M latexpdf manual $(DOC_OUT) -W
29 31
30 # This depends on sphinx-build's singlehtml target creating index.html 32 # This depends on sphinx-build's singlehtml target creating index.html