From 334189e96174bce0aba429285f121e1f1634eb05 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 15 Feb 2016 01:49:03 +0100 Subject: [PATCH] Really fix parallel build of manpages Based on https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html. Signed-off-by: Sebastian Ramacher --- doc/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/Makefile b/doc/Makefile index 7e36b9d..c4151da 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -22,11 +22,17 @@ $(SPHINX_BUILDDIR)/html/index.html: $(HTML_SOURCES) $(SPHINX_BUILDDIR)/doxygen/x $(call colorecho,DOC,"Build HTML documentation") $(QUIET)$(SPHINX_BIN) -b html $(SPHINX_OPTS) . $(SPHINX_BUILDDIR)/html -$(SPHINX_BUILDDIR)/zathura.1 $(SPHINX_BUILDDIR)/zathurarc.5: $(MAN_SOURCES) +$(SPHINX_BUILDDIR)/zathura.1: $(MAN_SOURCES) $(QUIET)mkdir -p $(SPHINX_BUILDDIR) $(call colorecho,DOC,"Build man pages") $(QUIET)$(SPHINX_BIN) -b man $(SPHINX_OPTS) man $(SPHINX_BUILDDIR) +$(SPHINX_BUILDDIR)/zathurarc.5: $(SPHINX_BUILDDIR)/zathura.1 + @if test -f $@; then :; else \ + rm -f $(SPHINX_BUILDDIR)/zathura.1; \ + $(MAKE) $(SPHINX_BUILDDIR)/zathura.1; \ + fi + $(SPHINX_BUILDDIR)/doxygen/xml/index.xml: $(DOXYGEN_SOURCES) $(QUIET)mkdir -p $(SPHINX_BUILDDIR)/doxygen/xml $(call colorecho,DOC,"Run doxygen")