From c232b6d78fb94df3dea3ea2076a3cf34e8de99a4 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 5 Jan 2010 10:29:27 +0100 Subject: Make publican invocation make -j safe. publican isn't make -j safe. So cheat a little, always create pdf and html at the same time, then make html depend on pdf build for copying. * doc/beginners/Makefile.am ($(SBG).pdf): Also generate html version. ($(SBG).html): Depend on pdf version, then copy. * doc/beginners/Makefile.in: Regenerated. --- doc/beginners/Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc/beginners/Makefile.am') diff --git a/doc/beginners/Makefile.am b/doc/beginners/Makefile.am index 29ffeaba..e3055967 100644 --- a/doc/beginners/Makefile.am +++ b/doc/beginners/Makefile.am @@ -13,12 +13,13 @@ BEGIN_INSTALL_DIR = $(DOC_INSTALL_DIR)/$(SBG) if BUILD_PUBLICAN all: $(SBG).pdf $(SBG)/index.html +# publican isn't make -j safe. So cheat a little, always create pdf and html +# at the same time, then make html depend on pdf build for copying. $(SBG).pdf: - publican build --formats=pdf --langs=en-US && \ + publican build --formats=pdf,html --langs=en-US && \ mv build/en-US/pdf/*$(SBG)*.pdf $(SBG).pdf -$(SBG)/index.html: - publican build --formats=html --langs=en-US && \ +$(SBG)/index.html: $(SBG).pdf mv build/en-US/html $(SBG) clean-local: -- cgit