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.
This commit is contained in:
Damien Lespiau 2010-08-03 21:02:23 +01:00
parent 8ac3cb29ea
commit b4f4942e07

View File

@ -10,7 +10,6 @@ XML_FILES = \
animations.xml \ animations.xml \
events.xml \ events.xml \
introduction.xml \ introduction.xml \
recipe-template.xml \
textures.xml \ textures.xml \
$(NULL) $(NULL)
@ -52,6 +51,7 @@ VIDEO_FILES = \
EXTRA_DIST = \ EXTRA_DIST = \
clutter-cookbook.xml.in \ clutter-cookbook.xml.in \
recipe-template.xml \
$(IMAGE_FILES) \ $(IMAGE_FILES) \
$(XML_FILES) \ $(XML_FILES) \
$(VIDEO_FILES) $(VIDEO_FILES)
@ -60,13 +60,13 @@ CLEANFILES = \
pdf-build.stamp \ pdf-build.stamp \
html-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 \ SP_ENCODING=XML SP_CHARSET_FIXED=YES \
$(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \ $(JW) -b pdf $(top_builddir)/doc/cookbook/clutter-cookbook.xml \
&& mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \ && mv -f clutter-cookbook.pdf clutter-cookbook-@CLUTTER_API_VERSION@.pdf \
&& echo timestamp > $(@F) && 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 ] ; then mkdir html ; fi && \
if [ ! -d html/images ] ; then mkdir html/images ; fi && \ if [ ! -d html/images ] ; then mkdir html/images ; fi && \
if [ ! -d html/videos ] ; then mkdir html/videos ; fi && \ if [ ! -d html/videos ] ; then mkdir html/videos ; fi && \