[farsight2/master] Only try to generate the doc for existing transmitters

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:26:54 PST 2008


---
 common/gtk-doc-plugins.mak                   |    2 +-
 docs/plugins/Makefile.am                     |    8 +++++++-
 docs/plugins/farsight2-transmitters.types    |    4 ----
 docs/plugins/farsight2-transmitters.types.in |    1 +
 4 files changed, 9 insertions(+), 6 deletions(-)
 delete mode 100644 docs/plugins/farsight2-transmitters.types
 create mode 100644 docs/plugins/farsight2-transmitters.types.in

diff --git a/common/gtk-doc-plugins.mak b/common/gtk-doc-plugins.mak
index 5d11438..3a3edc2 100644
--- a/common/gtk-doc-plugins.mak
+++ b/common/gtk-doc-plugins.mak
@@ -368,7 +368,7 @@ scanobj-trans-update:
 # We have a scanobj-build.stamp just to prevent both from running at the same
 # time as they use temp files with the same name
 
-scanobj-trans-build.stamp: $(SCANOBJ_DEPS) $(basefiles) scanobj-build.stamp
+scanobj-trans-build.stamp: $(SCANOBJ_DEPS) $(basefiles) scanobj-build.stamp farsight2-transmitters.types
 	@echo '*** Scanning Transmitters ***'
 	if test x"$(srcdir)" = x. ; then				\
 	    GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext	\
diff --git a/docs/plugins/Makefile.am b/docs/plugins/Makefile.am
index 2309554..9812254 100644
--- a/docs/plugins/Makefile.am
+++ b/docs/plugins/Makefile.am
@@ -105,9 +105,15 @@ content_files =
 
 # Other files to distribute.
 extra_files = \
-	farsight2-transmitters.types \
+	farsight2-transmitters.types.in \
 	gtkdoc-scangobj-transmitters
 
+farsight2-transmitters.types: farsight2-transmitters.types.in Makefile
+	cat $< > $@
+	for i in "$(FS2_TRANSMITTER_PLUGINS_SELECTED)"; do \
+		echo "${i}" >> $@ ;\
+	done
+
 # CFLAGS and LDFLAGS for compiling scan program. Only needed if your app/lib
 # contains GtkObjects/GObjects and you want to document signals and properties.
 GTKDOC_CFLAGS = $(GST_BASE_CFLAGS) -I$(top_builddir) -I$(top_builddir)/gst-libs
diff --git a/docs/plugins/farsight2-transmitters.types b/docs/plugins/farsight2-transmitters.types
deleted file mode 100644
index 52d6e0d..0000000
--- a/docs/plugins/farsight2-transmitters.types
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <gst/farsight/fs-transmitter.h>
-rawudp
-multicast
-nice
diff --git a/docs/plugins/farsight2-transmitters.types.in b/docs/plugins/farsight2-transmitters.types.in
new file mode 100644
index 0000000..7f74447
--- /dev/null
+++ b/docs/plugins/farsight2-transmitters.types.in
@@ -0,0 +1 @@
+#include <gst/farsight/fs-transmitter.h>
-- 
1.5.6.5




More information about the farsight-commits mailing list