From b4f4942e07cd2d7f5ad6e235fadb8ed2cf45f48d Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 3 Aug 2010 21:02:23 +0100 Subject: [PATCH] cookbook: Add the source XML files as dependencies in the Makefile rules The generated cookbook files (either HTML or PDF) do not only depend on clutter-cookbok.xml but also on all the chapters that compose the cookbook. Add this dependency to the Makefile rules to have make rebuild the book when a chapter changes. Since XML_FILES is now the list of source files, move recipe-template.xml to EXTRA_DIST. --- doc/cookbook/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/cookbook/Makefile.am b/doc/cookbook/Makefile.am index e0c4ca7ba..21ff33eb4 100644 --- a/doc/cookbook/Makefile.am +++ b/doc/cookbook/Makefile.am @@ -10,7 +10,6 @@ XML_FILES = \ animations.xml \ events.xml \ introduction.xml \ - recipe-template.xml \ textures.xml \ $(NULL) @@ -52,6 +51,7 @@ VIDEO_FILES = \ EXTRA_DIST = \ clutter-cookbook.xml.in \ + recipe-template.xml \ $(IMAGE_FILES) \ $(XML_FILES) \ $(VIDEO_FILES) @@ -60,13 +60,13 @@ CLEANFILES = \ pdf-build.stamp \ html-build.stamp -pdf-build.stamp: clutter-cookbook.xml +pdf-build.stamp: clutter-cookbook.xml $(XML_FILES) SP_ENCODING=XML SP_CHARSET_FIXED=YES \ $(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \ && mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \ && echo timestamp > $(@F) -html-build.stamp: clutter-cookbook.xml +html-build.stamp: clutter-cookbook.xml $(XML_FILES) if [ ! -d html ] ; then mkdir html ; fi && \ if [ ! -d html/images ] ; then mkdir html/images ; fi && \ if [ ! -d html/videos ] ; then mkdir html/videos ; fi && \