[rygel] doc: Rebuild documentation on source changes



commit b080d8c28d13d4df1eb320f414d73cad70b7ff5c
Author: Jens Georg <mail jensge org>
Date:   Fri Jun 29 12:09:56 2012 +0200

    doc: Rebuild documentation on source changes
    
    Also remove previous output directory as a work-around for
    https://bugzilla.gnome.org/show_bug.cgi?id=679114

 doc/reference/librygel-core/Makefile.am     |    8 +++++---
 doc/reference/librygel-renderer/Makefile.am |    8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/librygel-core/Makefile.am b/doc/reference/librygel-core/Makefile.am
index d192b3d..01814b1 100644
--- a/doc/reference/librygel-core/Makefile.am
+++ b/doc/reference/librygel-core/Makefile.am
@@ -25,20 +25,22 @@ VALADOC_FLAGS = --force \
 		--package-version 1.0 \
 		$(VALA_SOURCE_FILES_WITH_PATHS)
 
-valadoc:
+valadoc: $(VALA_SOURCE_FILES_WITH_PATHS)
 	$(VALADOC) \
 		-o valadoc \
 		$(VALADOC_FLAGS) \
 		$(NULL)
 
-devhelp:
+devhelp: $(VALA_SOURCE_FILES_WITH_PATHS)
+	@rm -rf devhelp
 	$(VALADOC) \
 		-o devhelp \
 		--doclet devhelp \
 		$(VALADOC_FLAGS) \
 		$(NULL)
 
-gtkdoc:
+gtkdoc: $(VALA_SOURCE_FILES_WITH_PATHS)
+	@rm -rf gtkdoc
 	$(VALADOC) \
 		-X $(top_builddir)/src/librygel-core/rygel-core.h \
 		-X -l -X $(top_builddir)/src/librygel-core/.libs/librygel-core-1.0.so \
diff --git a/doc/reference/librygel-renderer/Makefile.am b/doc/reference/librygel-renderer/Makefile.am
index 6bfc339..b5fa1d0 100644
--- a/doc/reference/librygel-renderer/Makefile.am
+++ b/doc/reference/librygel-renderer/Makefile.am
@@ -30,20 +30,22 @@ VALADOC_FLAGS = --force \
 		--package-version 1.0 \
 		$(VALA_SOURCE_FILES_WITH_PATHS)
 
-valadoc:
+valadoc: $(VALA_SOURCE_FILES_WITH_PATHS)
 	$(VALADOC) \
 		-o valadoc \
 		$(VALADOC_FLAGS) \
 		$(NULL)
 
-devhelp:
+devhelp: $(VALA_SOURCE_FILES_WITH_PATHS)
+	@rm -rf devhelp
 	$(VALADOC) \
 		-o devhelp \
 		--doclet devhelp \
 		$(VALADOC_FLAGS) \
 		$(NULL)
 
-gtkdoc:
+gtkdoc: $(VALA_SOURCE_FILES_WITH_PATHS)
+	@rm -rf gtkdoc
 	$(VALADOC) \
 		-X $(top_builddir)/src/librygel-renderer/rygel-renderer.h \
 		-X -l -X $(top_builddir)/src/librygel-renderer/.libs/librygel-renderer-1.0.so \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]