From 9566d69f123189ae447f5ca4c93db9440656cadd Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 30 Jun 2010 15:46:52 +0100 Subject: [PATCH] Improve documentation build rules Ensure that the documentation is rebuilt if any of the sources files it's extracted from change. --- docs/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 4c29331..b93f96e 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -23,8 +23,10 @@ img_DATA = \ $(doc_data) $(innerdoc_DATA) $(img_DATA): folks-0.1/index.html -folks-0.1/index.html: +# The Vala files which will have documentation extracted from them +doc_files = $(top_srcdir)/folks/*.vala + +folks-0.1/index.html: $(doc_files) $(VALADOC) -o folks-0.1/ --force -b $(top_srcdir) \ --pkg=gee-1.0 --pkg=gio-2.0 --pkg=gmodule-2.0 --pkg=build-conf \ - --vapidir=$(top_srcdir)/folks \ - $(top_srcdir)/folks/*.vala + --vapidir=$(top_srcdir)/folks $(doc_files) -- 2.7.4