1 ## Process this file with automake to produce Makefile.in
3 # The name of the module.
6 # The top-level SGML file.
7 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
9 # The directory containing the source code (if it contains documentation).
10 DOC_SOURCE_DIR=$(top_srcdir)/gst
12 CFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
13 LDFLAGS = $(GLIB_LIBS) $(GTK_LIBS) $(top_srcdir)/gst/.libs/libgst.so $(top_srcdir)/gst/elements/.libs/libgstelements.so
15 EXTRA_DIST = gstreamer.types.in gstreamer.hierarchy $(DOC_MODULE)-sections.txt $(DOC_MAIN_SGML_FILE)
17 HTML_DIR=$(datadir)/gstreamer/html
19 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
26 tmpl/gstasyncdisksrc.sgml \
27 tmpl/gstautoplug.sgml \
28 tmpl/gstscheduler.sgml \
31 tmpl/gstaudiosink.sgml \
32 tmpl/gstaudiosrc.sgml \
35 tmpl/gstbufferpool.sgml \
36 tmpl/gstdisksrc.sgml \
37 tmpl/gstelement.sgml \
38 tmpl/gstesdsink.sgml \
39 tmpl/gstfakesink.sgml \
40 tmpl/gstfakesrc.sgml \
43 tmpl/gsthttpsrc.sgml \
44 tmpl/gstidentity.sgml \
49 tmpl/gstpipeline.sgml \
52 tmpl/gstreamer-unused.sgml \
53 tmpl/gstsinesrc.sgml \
63 gstreamer_docdir = $(HTML_DIR)
64 gstreamer_doc_DATA = \
68 gstreamer-sections.txt
71 $(DOC_MODULE).signals \
72 $(DOC_MODULE).hierarchy \
76 gstreamer.html: html/book1.html
77 -cd $(srcdir) && cp html/book1.html gstreamer.html
82 html/book1.html: sgml/gstreamer-doc.bottom
85 sgml/gstreamer-doc.bottom: $(tmpl_sources)
89 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers=""
91 scanobj: $(srcdir)/$(DOC_MODULE).types
92 -CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" gtkdoc-scanobj --module=$(DOC_MODULE)
93 gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
95 tmpl: scanobj gstreamer-decl.txt
96 gtkdoc-mktmpl --module=$(DOC_MODULE)
99 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
102 if ! test -d html ; then mkdir html ; fi
103 -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
106 rm -f *~ *.bak *.signals *-unused.txt *.args
108 maintainer-clean-local: clean
109 rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
111 install-data-local: gstreamer.html
112 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
113 (installfiles=`echo $(srcdir)/html/*.html`; \
114 if test "$$installfiles" = '$(srcdir)/html/*.html'; \
115 then echo '-- Nothing to install' ; \
117 for i in $$installfiles; do \
118 echo '-- Installing '$$i ; \
119 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
121 echo '-- Installing $(srcdir)/html/index.sgml' ; \
122 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
123 echo '-- Fixing Crossreferences' ; \
124 gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
127 dist-hook: gstreamer.html
128 mkdir $(distdir)/html
129 mkdir $(distdir)/sgml
130 mkdir $(distdir)/tmpl
131 -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
132 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
133 -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
134 -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
136 .PHONY : html sgml tmpl