• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile.in generated by automake 1.16.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2018 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17# this snippet is to be included by both our docbook manuals
18# and gtk-doc API references
19
20# it adds an upload target to each of these dir's Makefiles
21
22# each Makefile.am should define the following variables:
23# - DOC: the base name of the documentation
24#        (faq, manual, pwg, gstreamer, gstreamer-libs)
25# - FORMATS: the formats in which DOC is output
26#            (html ps pdf)
27
28# if you want to use it, make sure your $HOME/.ssh/config file contains the
29# correct User entry for the Host entry for the DOC_SERVER
30
31# This is an include file specifically tuned for building documentation
32# for GStreamer plug-ins
33VPATH = @srcdir@
34am__is_gnu_make = { \
35  if test -z '$(MAKELEVEL)'; then \
36    false; \
37  elif test -n '$(MAKE_HOST)'; then \
38    true; \
39  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
40    true; \
41  else \
42    false; \
43  fi; \
44}
45am__make_running_with_option = \
46  case $${target_option-} in \
47      ?) ;; \
48      *) echo "am__make_running_with_option: internal error: invalid" \
49              "target option '$${target_option-}' specified" >&2; \
50         exit 1;; \
51  esac; \
52  has_opt=no; \
53  sane_makeflags=$$MAKEFLAGS; \
54  if $(am__is_gnu_make); then \
55    sane_makeflags=$$MFLAGS; \
56  else \
57    case $$MAKEFLAGS in \
58      *\\[\ \	]*) \
59        bs=\\; \
60        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
61          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
62    esac; \
63  fi; \
64  skip_next=no; \
65  strip_trailopt () \
66  { \
67    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
68  }; \
69  for flg in $$sane_makeflags; do \
70    test $$skip_next = yes && { skip_next=no; continue; }; \
71    case $$flg in \
72      *=*|--*) continue;; \
73        -*I) strip_trailopt 'I'; skip_next=yes;; \
74      -*I?*) strip_trailopt 'I';; \
75        -*O) strip_trailopt 'O'; skip_next=yes;; \
76      -*O?*) strip_trailopt 'O';; \
77        -*l) strip_trailopt 'l'; skip_next=yes;; \
78      -*l?*) strip_trailopt 'l';; \
79      -[dEDm]) skip_next=yes;; \
80      -[JT]) skip_next=yes;; \
81    esac; \
82    case $$flg in \
83      *$$target_option*) has_opt=yes; break;; \
84    esac; \
85  done; \
86  test $$has_opt = yes
87am__make_dryrun = (target_option=n; $(am__make_running_with_option))
88am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
89pkgdatadir = $(datadir)/@PACKAGE@
90pkgincludedir = $(includedir)/@PACKAGE@
91pkglibdir = $(libdir)/@PACKAGE@
92pkglibexecdir = $(libexecdir)/@PACKAGE@
93am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
94install_sh_DATA = $(install_sh) -c -m 644
95install_sh_PROGRAM = $(install_sh) -c
96install_sh_SCRIPT = $(install_sh) -c
97INSTALL_HEADER = $(INSTALL_DATA)
98transform = $(program_transform_name)
99NORMAL_INSTALL = :
100PRE_INSTALL = :
101POST_INSTALL = :
102NORMAL_UNINSTALL = :
103PRE_UNINSTALL = :
104POST_UNINSTALL = :
105build_triplet = @build@
106host_triplet = @host@
107target_triplet = @target@
108subdir = docs/plugins
109ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
110am__aclocal_m4_deps = $(top_srcdir)/common/m4/as-ac-expand.m4 \
111	$(top_srcdir)/common/m4/as-auto-alt.m4 \
112	$(top_srcdir)/common/m4/as-compiler-flag.m4 \
113	$(top_srcdir)/common/m4/as-libtool.m4 \
114	$(top_srcdir)/common/m4/as-version.m4 \
115	$(top_srcdir)/common/m4/ax_pthread.m4 \
116	$(top_srcdir)/common/m4/gst-arch.m4 \
117	$(top_srcdir)/common/m4/gst-args.m4 \
118	$(top_srcdir)/common/m4/gst-check.m4 \
119	$(top_srcdir)/common/m4/gst-error.m4 \
120	$(top_srcdir)/common/m4/gst-glib2.m4 \
121	$(top_srcdir)/common/m4/gst-platform.m4 \
122	$(top_srcdir)/common/m4/gst-plugin-docs.m4 \
123	$(top_srcdir)/common/m4/gst-plugindir.m4 \
124	$(top_srcdir)/common/m4/gst.m4 \
125	$(top_srcdir)/common/m4/gtk-doc.m4 \
126	$(top_srcdir)/common/m4/orc.m4 $(top_srcdir)/common/m4/pkg.m4 \
127	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
128	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
129	$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
130am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
131	$(ACLOCAL_M4)
132DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
133mkinstalldirs = $(install_sh) -d
134CONFIG_HEADER = $(top_builddir)/config.h
135CONFIG_CLEAN_FILES =
136CONFIG_CLEAN_VPATH_FILES =
137AM_V_P = $(am__v_P_@AM_V@)
138am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
139am__v_P_0 = false
140am__v_P_1 = :
141AM_V_GEN = $(am__v_GEN_@AM_V@)
142am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
143am__v_GEN_0 = @echo "  GEN     " $@;
144am__v_GEN_1 =
145AM_V_at = $(am__v_at_@AM_V@)
146am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
147am__v_at_0 = @
148am__v_at_1 =
149SOURCES =
150DIST_SOURCES =
151am__can_run_installinfo = \
152  case $$AM_UPDATE_INFO_DIR in \
153    n|no|NO) false;; \
154    *) (install-info --version) >/dev/null 2>&1;; \
155  esac
156am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
157am__DIST_COMMON = $(srcdir)/../../common/upload-doc.mak \
158	$(srcdir)/Makefile.in $(top_srcdir)/common/gtk-doc-plugins.mak
159DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
160ACLOCAL = @ACLOCAL@
161ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
162AMTAR = @AMTAR@
163AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
164AR = @AR@
165AS = @AS@
166AUTOCONF = @AUTOCONF@
167AUTOHEADER = @AUTOHEADER@
168AUTOMAKE = @AUTOMAKE@
169AWK = @AWK@
170BZ2_LIBS = @BZ2_LIBS@
171CC = @CC@
172CCASFLAGS = @CCASFLAGS@
173CCDEPMODE = @CCDEPMODE@
174CFLAGS = @CFLAGS@
175CPP = @CPP@
176CPPFLAGS = @CPPFLAGS@
177CXXFLAGS = @CXXFLAGS@
178CYGPATH_W = @CYGPATH_W@
179DARWIN_LDFLAGS = @DARWIN_LDFLAGS@
180DEFS = @DEFS@
181DEPDIR = @DEPDIR@
182DEPRECATED_CFLAGS = @DEPRECATED_CFLAGS@
183DLLTOOL = @DLLTOOL@
184DSYMUTIL = @DSYMUTIL@
185DUMPBIN = @DUMPBIN@
186ECHO_C = @ECHO_C@
187ECHO_N = @ECHO_N@
188ECHO_T = @ECHO_T@
189EGREP = @EGREP@
190ERROR_CFLAGS = @ERROR_CFLAGS@
191EXEEXT = @EXEEXT@
192EXTRA_CFLAGS = @EXTRA_CFLAGS@
193FFLAGS = @FFLAGS@
194FGREP = @FGREP@
195GCOV = @GCOV@
196GCOV_CFLAGS = @GCOV_CFLAGS@
197GCOV_LIBS = @GCOV_LIBS@
198GIO_CFLAGS = @GIO_CFLAGS@
199GIO_LDFLAGS = @GIO_LDFLAGS@
200GIO_LIBS = @GIO_LIBS@
201GLIB_CFLAGS = @GLIB_CFLAGS@
202GLIB_EXTRA_CFLAGS = @GLIB_EXTRA_CFLAGS@
203GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
204GLIB_LIBS = @GLIB_LIBS@
205GLIB_MKENUMS = @GLIB_MKENUMS@
206GLIB_REQ = @GLIB_REQ@
207GREP = @GREP@
208GSTPB_PLUGINS_DIR = @GSTPB_PLUGINS_DIR@
209GST_AGE = @GST_AGE@
210GST_ALL_LDFLAGS = @GST_ALL_LDFLAGS@
211GST_API_VERSION = @GST_API_VERSION@
212GST_BASE_CFLAGS = @GST_BASE_CFLAGS@
213GST_BASE_LIBS = @GST_BASE_LIBS@
214GST_CFLAGS = @GST_CFLAGS@
215GST_CHECK_CFLAGS = @GST_CHECK_CFLAGS@
216GST_CHECK_LIBS = @GST_CHECK_LIBS@
217GST_CURRENT = @GST_CURRENT@
218GST_LEVEL_DEFAULT = @GST_LEVEL_DEFAULT@
219GST_LIBS = @GST_LIBS@
220GST_LIBVERSION = @GST_LIBVERSION@
221GST_LT_LDFLAGS = @GST_LT_LDFLAGS@
222GST_OPTION_CFLAGS = @GST_OPTION_CFLAGS@
223GST_PACKAGE_NAME = @GST_PACKAGE_NAME@
224GST_PACKAGE_ORIGIN = @GST_PACKAGE_ORIGIN@
225GST_PLUGINS_BASE_CFLAGS = @GST_PLUGINS_BASE_CFLAGS@
226GST_PLUGINS_BASE_DIR = @GST_PLUGINS_BASE_DIR@
227GST_PLUGINS_BASE_LIBS = @GST_PLUGINS_BASE_LIBS@
228GST_PLUGINS_DIR = @GST_PLUGINS_DIR@
229GST_PLUGIN_LDFLAGS = @GST_PLUGIN_LDFLAGS@
230GST_REVISION = @GST_REVISION@
231GST_TOOLS_DIR = @GST_TOOLS_DIR@
232GTKDOC_CHECK = @GTKDOC_CHECK@
233GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
234GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
235GTKDOC_MKPDF = @GTKDOC_MKPDF@
236GTKDOC_REBASE = @GTKDOC_REBASE@
237HTML_DIR = @HTML_DIR@
238INSTALL = @INSTALL@
239INSTALL_DATA = @INSTALL_DATA@
240INSTALL_PROGRAM = @INSTALL_PROGRAM@
241INSTALL_SCRIPT = @INSTALL_SCRIPT@
242INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
243LD = @LD@
244LDFLAGS = @LDFLAGS@
245LIBAV_CFLAGS = @LIBAV_CFLAGS@
246LIBAV_CO_DIR = @LIBAV_CO_DIR@
247LIBAV_CPPFLAGS = @LIBAV_CPPFLAGS@
248LIBAV_DEPS = @LIBAV_DEPS@
249LIBAV_EXTERNALS_REVISION = @LIBAV_EXTERNALS_REVISION@
250LIBAV_LIBS = @LIBAV_LIBS@
251LIBAV_REVISION = @LIBAV_REVISION@
252LIBAV_SUBDIRS = @LIBAV_SUBDIRS@
253LIBAV_SVN = @LIBAV_SVN@
254LIBM = @LIBM@
255LIBOBJS = @LIBOBJS@
256LIBS = @LIBS@
257LIBTOOL = @LIBTOOL@
258LIPO = @LIPO@
259LN_S = @LN_S@
260LTLIBOBJS = @LTLIBOBJS@
261LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
262LZMA_LIBS = @LZMA_LIBS@
263MAINT = @MAINT@
264MAKEINFO = @MAKEINFO@
265MANIFEST_TOOL = @MANIFEST_TOOL@
266MKDIR_P = @MKDIR_P@
267NM = @NM@
268NMEDIT = @NMEDIT@
269OBJDUMP = @OBJDUMP@
270OBJEXT = @OBJEXT@
271ORCC = @ORCC@
272ORCC_FLAGS = @ORCC_FLAGS@
273ORC_CFLAGS = @ORC_CFLAGS@
274ORC_LIBS = @ORC_LIBS@
275OTOOL = @OTOOL@
276OTOOL64 = @OTOOL64@
277PACKAGE = @PACKAGE@
278PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
279PACKAGE_NAME = @PACKAGE_NAME@
280PACKAGE_STRING = @PACKAGE_STRING@
281PACKAGE_TARNAME = @PACKAGE_TARNAME@
282PACKAGE_URL = @PACKAGE_URL@
283PACKAGE_VERSION = @PACKAGE_VERSION@
284PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
285PACKAGE_VERSION_MICRO = @PACKAGE_VERSION_MICRO@
286PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
287PACKAGE_VERSION_NANO = @PACKAGE_VERSION_NANO@
288PACKAGE_VERSION_RELEASE = @PACKAGE_VERSION_RELEASE@
289PATH_SEPARATOR = @PATH_SEPARATOR@
290PKG_CONFIG = @PKG_CONFIG@
291PLUGINDIR = @PLUGINDIR@
292PROFILE_CFLAGS = @PROFILE_CFLAGS@
293PTHREAD_CC = @PTHREAD_CC@
294PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
295PTHREAD_LIBS = @PTHREAD_LIBS@
296PYTHON = @PYTHON@
297PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
298PYTHON_PLATFORM = @PYTHON_PLATFORM@
299PYTHON_PREFIX = @PYTHON_PREFIX@
300PYTHON_VERSION = @PYTHON_VERSION@
301RANLIB = @RANLIB@
302SED = @SED@
303SET_MAKE = @SET_MAKE@
304SHELL = @SHELL@
305STRIP = @STRIP@
306VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
307VALGRIND_LIBS = @VALGRIND_LIBS@
308VALGRIND_PATH = @VALGRIND_PATH@
309VERSION = @VERSION@
310WARNING_CFLAGS = @WARNING_CFLAGS@
311WIN32_LIBS = @WIN32_LIBS@
312abs_builddir = @abs_builddir@
313abs_srcdir = @abs_srcdir@
314abs_top_builddir = @abs_top_builddir@
315abs_top_srcdir = @abs_top_srcdir@
316ac_ct_AR = @ac_ct_AR@
317ac_ct_CC = @ac_ct_CC@
318ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
319am__include = @am__include@
320am__leading_dot = @am__leading_dot@
321am__quote = @am__quote@
322am__tar = @am__tar@
323am__untar = @am__untar@
324ax_pthread_config = @ax_pthread_config@
325bindir = @bindir@
326build = @build@
327build_alias = @build_alias@
328build_cpu = @build_cpu@
329build_os = @build_os@
330build_vendor = @build_vendor@
331builddir = @builddir@
332datadir = @datadir@
333datarootdir = @datarootdir@
334docdir = @docdir@
335dvidir = @dvidir@
336exec_prefix = @exec_prefix@
337host = @host@
338host_alias = @host_alias@
339host_cpu = @host_cpu@
340host_os = @host_os@
341host_vendor = @host_vendor@
342htmldir = @htmldir@
343includedir = @includedir@
344infodir = @infodir@
345install_sh = @install_sh@
346libdir = @libdir@
347libexecdir = @libexecdir@
348localedir = @localedir@
349localstatedir = @localstatedir@
350mandir = @mandir@
351mkdir_p = @mkdir_p@
352oldincludedir = @oldincludedir@
353pdfdir = @pdfdir@
354pkgpyexecdir = @pkgpyexecdir@
355pkgpythondir = @pkgpythondir@
356plugindir = @plugindir@
357prefix = @prefix@
358program_transform_name = @program_transform_name@
359psdir = @psdir@
360pyexecdir = @pyexecdir@
361pythondir = @pythondir@
362runstatedir = @runstatedir@
363sbindir = @sbindir@
364sharedstatedir = @sharedstatedir@
365srcdir = @srcdir@
366sysconfdir = @sysconfdir@
367target = @target@
368target_alias = @target_alias@
369target_cpu = @target_cpu@
370target_os = @target_os@
371target_vendor = @target_vendor@
372top_build_prefix = @top_build_prefix@
373top_builddir = @top_builddir@
374top_srcdir = @top_srcdir@
375GST_DOC_SCANOBJ = $(top_srcdir)/common/gstdoc-scangobj
376
377# The name of the module, e.g. 'glib'.
378#DOC_MODULE=gst-plugins-libs-@GST_API_VERSION@
379MODULE = gst-libav
380DOC_MODULE = $(MODULE)-plugins
381
382# for upload-doc.mak
383DOC = $(MODULE)-plugins
384FORMATS = html
385
386# these variables define the location of the online docs
387DOC_SERVER = gstreamer.freedesktop.org
388DOC_BASE = /srv/gstreamer.freedesktop.org/www/data/doc
389DOC_URL = $(DOC_SERVER):$(DOC_BASE)
390
391# The top-level SGML file. Change it if you want.
392DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
393
394# The directory containing the source code.
395# gtk-doc will search all .c & .h files beneath here for inline comments
396# documenting functions and macros.
397DOC_SOURCE_DIR = $(top_srcdir)/ext/libav
398
399# Extra options to supply to gtkdoc-scan.
400SCAN_OPTIONS = --rebuild-sections
401
402# Extra options to supply to gtkdoc-mkdb.
403MKDB_OPTIONS = --sgml-mode
404
405# Extra options to supply to gtkdoc-fixref.
406# FIXME get the location of the installed gstreamer docs
407#FIXXREF_OPTIONS=--extra-dir=../gst/html
408
409# Used for dependencies.
410HFILE_GLOB = $(top_srcdir)/ext/libav/*.h
411CFILE_GLOB = $(top_srcdir)/ext/libav/*.c
412
413# Header files to ignore when scanning.
414IGNORE_HFILES =
415IGNORE_CFILES =
416
417# we add all .h files of elements that have signals/args we want
418# sadly this also pulls in the private methods - maybe we should
419# move those around in the source ?
420# also, we should add some stuff here conditionally based on whether
421# or not the plugin will actually build
422# but I'm not sure about that - it might be this Just Works given that
423# the registry won't have the element
424
425# Images to copy into HTML directory.
426HTML_IMAGES =
427
428# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
429content_files =
430
431# Other files to distribute.
432extra_files =
433
434# CFLAGS and LDFLAGS for compiling scan program. Only needed if your app/lib
435# contains GtkObjects/GObjects and you want to document signals and properties.
436GTKDOC_CFLAGS = $(LIBAV_CFLAGS) $(GST_CFLAGS) -I$(top_builddir) -I$(top_builddir)/ext/libav
437GTKDOC_LIBS = -L$(top_builddir)/ext/libav -lgstlibav \
438  $(LIBAV_LIBS) $(GST_BASE_LIBS)
439
440
441# If you need to override some of the declarations, place them in this file
442# and uncomment this line.
443#DOC_OVERRIDES = $(DOC_MODULE)-overrides.txt
444DOC_OVERRIDES =
445@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
446@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
447@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
448@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
449@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN =
450@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute
451
452# We set GPATH here; this gives us semantics for GNU make
453# which are more like other make's VPATH, when it comes to
454# whether a source that is a target of one rule is then
455# searched for in VPATH/GPATH.
456#
457GPATH = $(srcdir)
458
459# thomas: make docs parallel installable
460TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)-@GST_API_VERSION@
461MAINTAINER_DOC_STAMPS = \
462	scanobj-build.stamp
463
464EXTRA_DIST = \
465	$(MAINTAINER_DOC_STAMPS)		\
466	$(srcdir)/inspect/*.xml		\
467	$(SCANOBJ_FILES)		\
468	$(content_files)		\
469	$(extra_files)			\
470	$(HTML_IMAGES)			\
471	$(DOC_MAIN_SGML_FILE)	\
472	$(DOC_OVERRIDES)		\
473	$(DOC_MODULE)-sections.txt
474
475
476# we don't add scanobj-build.stamp here since they are built manually by docs
477# maintainers and result is commited to git
478DOC_STAMPS = \
479	scan-build.stamp		\
480	sgml-build.stamp		\
481	html-build.stamp		\
482	scan.stamp			\
483	sgml.stamp			\
484	html.stamp
485
486
487# files generated/updated by gtkdoc-scangobj
488SCANOBJ_FILES = \
489	$(DOC_MODULE).args              \
490	$(DOC_MODULE).hierarchy         \
491	$(DOC_MODULE).interfaces        \
492	$(DOC_MODULE).prerequisites     \
493	$(DOC_MODULE).signals           \
494	$(DOC_MODULE).types
495
496SCANOBJ_FILES_O = \
497	.libs/$(DOC_MODULE)-scan.o
498
499
500# files generated/updated by gtkdoc-scan
501SCAN_FILES = \
502	$(DOC_MODULE)-sections.txt	\
503	$(DOC_MODULE)-overrides.txt	\
504	$(DOC_MODULE)-decl.txt		\
505	$(DOC_MODULE)-decl-list.txt
506
507REPORT_FILES = \
508	$(DOC_MODULE)-undocumented.txt \
509	$(DOC_MODULE)-undeclared.txt \
510	$(DOC_MODULE)-unused.txt
511
512CLEANFILES = \
513	$(SCANOBJ_FILES_O) \
514	$(REPORT_FILES) \
515	$(DOC_STAMPS) \
516	inspect-registry.xml
517
518INSPECT_DIR = inspect
519
520### inspect GStreamer plug-ins; done by documentation maintainer ###
521
522# only look at the plugins in this module when building inspect .xml stuff
523@ENABLE_GTK_DOC_TRUE@INSPECT_REGISTRY = $(top_builddir)/docs/plugins/inspect-registry.xml
524@ENABLE_GTK_DOC_TRUE@INSPECT_ENVIRONMENT = \
525@ENABLE_GTK_DOC_TRUE@	LC_ALL=C \
526@ENABLE_GTK_DOC_TRUE@	GST_PLUGIN_SYSTEM_PATH_1_0= \
527@ENABLE_GTK_DOC_TRUE@	GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(top_builddir)/plugins:$(top_builddir)/src:$(top_builddir)/gnl \
528@ENABLE_GTK_DOC_TRUE@	GST_REGISTRY_1_0=$(INSPECT_REGISTRY) \
529@ENABLE_GTK_DOC_TRUE@	PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
530@ENABLE_GTK_DOC_TRUE@	$(INSPECT_EXTRA_ENVIRONMENT)
531
532MAINTAINERCLEANFILES = $(MAINTAINER_DOC_STAMPS)
533
534# wildcard is apparently not portable to other makes, hence the use of find
535inspect_files = $(sort $(shell find $(srcdir)/$(INSPECT_DIR) -name '*.xml'))
536all: all-am
537
538.SUFFIXES:
539$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../common/upload-doc.mak $(top_srcdir)/common/gtk-doc-plugins.mak $(am__configure_deps)
540	@for dep in $?; do \
541	  case '$(am__configure_deps)' in \
542	    *$$dep*) \
543	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
544	        && { if test -f $@; then exit 0; else break; fi; }; \
545	      exit 1;; \
546	  esac; \
547	done; \
548	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/plugins/Makefile'; \
549	$(am__cd) $(top_srcdir) && \
550	  $(AUTOMAKE) --gnu docs/plugins/Makefile
551Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
552	@case '$?' in \
553	  *config.status*) \
554	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
555	  *) \
556	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
557	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
558	esac;
559$(srcdir)/../../common/upload-doc.mak $(top_srcdir)/common/gtk-doc-plugins.mak $(am__empty):
560
561$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
562	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
563
564$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
565	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
566$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
567	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
568$(am__aclocal_m4_deps):
569
570mostlyclean-libtool:
571	-rm -f *.lo
572
573clean-libtool:
574	-rm -rf .libs _libs
575tags TAGS:
576
577ctags CTAGS:
578
579cscope cscopelist:
580
581
582distdir: $(BUILT_SOURCES)
583	$(MAKE) $(AM_MAKEFLAGS) distdir-am
584
585distdir-am: $(DISTFILES)
586	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
587	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
588	list='$(DISTFILES)'; \
589	  dist_files=`for file in $$list; do echo $$file; done | \
590	  sed -e "s|^$$srcdirstrip/||;t" \
591	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
592	case $$dist_files in \
593	  */*) $(MKDIR_P) `echo "$$dist_files" | \
594			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
595			   sort -u` ;; \
596	esac; \
597	for file in $$dist_files; do \
598	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
599	  if test -d $$d/$$file; then \
600	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
601	    if test -d "$(distdir)/$$file"; then \
602	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
603	    fi; \
604	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
605	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
606	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
607	    fi; \
608	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
609	  else \
610	    test -f "$(distdir)/$$file" \
611	    || cp -p $$d/$$file "$(distdir)/$$file" \
612	    || exit 1; \
613	  fi; \
614	done
615	$(MAKE) $(AM_MAKEFLAGS) \
616	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
617	  dist-hook
618check-am: all-am
619check: check-am
620all-am: Makefile all-local
621installdirs:
622install: install-am
623install-exec: install-exec-am
624install-data: install-data-am
625uninstall: uninstall-am
626
627install-am: all-am
628	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
629
630installcheck: installcheck-am
631install-strip:
632	if test -z '$(STRIP)'; then \
633	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
634	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
635	      install; \
636	else \
637	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
638	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
639	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
640	fi
641mostlyclean-generic:
642
643clean-generic:
644	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
645
646distclean-generic:
647	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
648	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
649
650maintainer-clean-generic:
651	@echo "This command is intended for maintainers to use"
652	@echo "it deletes files that may require special tools to rebuild."
653	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
654clean: clean-am
655
656clean-am: clean-generic clean-libtool clean-local mostlyclean-am
657
658distclean: distclean-am
659	-rm -f Makefile
660distclean-am: clean-am distclean-generic distclean-local
661
662dvi: dvi-am
663
664dvi-am:
665
666html-am:
667
668info: info-am
669
670info-am:
671
672install-data-am: install-data-local
673
674install-dvi: install-dvi-am
675
676install-dvi-am:
677
678install-exec-am:
679
680install-html: install-html-am
681
682install-html-am:
683
684install-info: install-info-am
685
686install-info-am:
687
688install-man:
689
690install-pdf: install-pdf-am
691
692install-pdf-am:
693
694install-ps: install-ps-am
695
696install-ps-am:
697
698installcheck-am:
699
700maintainer-clean: maintainer-clean-am
701	-rm -f Makefile
702maintainer-clean-am: distclean-am maintainer-clean-generic
703
704mostlyclean: mostlyclean-am
705
706mostlyclean-am: mostlyclean-generic mostlyclean-libtool
707
708pdf: pdf-am
709
710pdf-am:
711
712ps: ps-am
713
714ps-am:
715
716uninstall-am: uninstall-local
717
718.MAKE: install-am install-strip
719
720.PHONY: all all-am all-local check check-am clean clean-generic \
721	clean-libtool clean-local cscopelist-am ctags-am dist-hook \
722	distclean distclean-generic distclean-libtool distclean-local \
723	distdir dvi dvi-am html html-am info info-am install \
724	install-am install-data install-data-am install-data-local \
725	install-dvi install-dvi-am install-exec install-exec-am \
726	install-html install-html-am install-info install-info-am \
727	install-man install-pdf install-pdf-am install-ps \
728	install-ps-am install-strip installcheck installcheck-am \
729	installdirs maintainer-clean maintainer-clean-generic \
730	mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
731	ps ps-am tags-am uninstall uninstall-am uninstall-local
732
733.PRECIOUS: Makefile
734
735html: html-build.stamp
736
737upload: $(FORMATS)
738	@if echo $(FORMATS) | grep html > /dev/null; then \
739	  echo "Preparing docs for upload (rebasing cross-references) ..." ; \
740	  if test x$(builddir) != x$(srcdir); then \
741	    echo "make upload can only be used if srcdir == builddir"; \
742	    exit 1; \
743	  fi; \
744	  # gtkdoc-rebase sometimes gets confused, so reset everything to \
745	  # local links before rebasing to online links                   \
746	  gtkdoc-rebase --html-dir=$(builddir)/html 2>/dev/null 2>/dev/null ; \
747	  rebase=`gtkdoc-rebase --verbose --online --html-dir=$(builddir)/html` ; \
748	  echo "$$rebase" | grep -e "On-*line"; \
749	  for req in glib gobject gstreamer gstreamer-libs gst-plugins-base-libs; do \
750	    if ! ( echo "$$rebase" | grep -i -e "On-*line.*/$$req/" ); then \
751	      echo "===============================================================================" ; \
752	      echo " Could not determine online location for $$req docs. Cross-referencing will be " ; \
753	      echo " broken, so not uploading. Make sure the library's gtk-doc documentation is    " ; \
754	      echo " installed somewhere in /usr/share/gtk-doc.                                    " ; \
755	      echo "===============================================================================" ; \
756	      exit 1; \
757	    fi; \
758	  done; \
759	  export SRC="$$SRC html"; \
760	fi; \
761	if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
762	if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
763	\
764	# upload releases to both X.Y/ and head/ subdirectories \
765	export DIR=$(DOC_BASE)/gstreamer/$(PACKAGE_VERSION_MAJOR).$(PACKAGE_VERSION_MINOR)/$(DOC); \
766	echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
767	ssh $(DOC_SERVER) mkdir -p $$DIR; \
768	rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
769	ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
770	\
771	export DIR=$(DOC_BASE)/gstreamer/head/$(DOC); \
772	echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
773	ssh $(DOC_SERVER) mkdir -p $$DIR; \
774	rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
775	ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
776	\
777	if echo $(FORMATS) | grep html > /dev/null; then \
778	  echo "Un-preparing docs for upload (rebasing cross-references) ..." ; \
779	  gtkdoc-rebase --html-dir=$(builddir)/html ; \
780	fi; \
781	echo Done
782
783help:
784	@echo
785	@echo "If you are a doc maintainer, run 'make update' to update"
786	@echo "the documentation files maintained in git"
787	@echo
788	@echo Other useful make targets:
789	@echo
790	@echo  check-inspected-versions: make sure the inspected plugin info
791	@echo                            is up to date before a release
792	@echo
793
794# update the stuff maintained by doc maintainers
795update: scanobj-update
796	$(MAKE) check-outdated-docs
797
798@ENABLE_GTK_DOC_TRUE@all-local: html-build.stamp
799
800#### scan gobjects; done by documentation maintainer ####
801@ENABLE_GTK_DOC_TRUE@scanobj-update:
802@ENABLE_GTK_DOC_TRUE@	-rm scanobj-build.stamp
803@ENABLE_GTK_DOC_TRUE@	$(MAKE) scanobj-build.stamp
804
805# gstdoc-scanobj produces 5 output files (.new)
806# scangobj-merge.py merges them into the file which we commit later
807# TODO: also merge the hierarchy
808@ENABLE_GTK_DOC_TRUE@scanobj-build.stamp: $(SCANOBJ_DEPS) $(basefiles)
809@ENABLE_GTK_DOC_TRUE@	@echo "  DOC   Introspecting gobjects"
810@ENABLE_GTK_DOC_TRUE@	@if test x"$(srcdir)" != x. ; then				\
811@ENABLE_GTK_DOC_TRUE@	    for f in $(SCANOBJ_FILES) $(SCAN_FILES);			\
812@ENABLE_GTK_DOC_TRUE@	    do								\
813@ENABLE_GTK_DOC_TRUE@	        if test -e $(srcdir)/$$f; then				\
814@ENABLE_GTK_DOC_TRUE@	            cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f . ;	\
815@ENABLE_GTK_DOC_TRUE@	        fi;							\
816@ENABLE_GTK_DOC_TRUE@	    done;							\
817@ENABLE_GTK_DOC_TRUE@	fi;								\
818@ENABLE_GTK_DOC_TRUE@	mkdir -p $(INSPECT_DIR); \
819@ENABLE_GTK_DOC_TRUE@	scanobj_options=""; \
820@ENABLE_GTK_DOC_TRUE@	if test "x$(V)" = "x1"; then \
821@ENABLE_GTK_DOC_TRUE@	    scanobj_options="--verbose"; \
822@ENABLE_GTK_DOC_TRUE@	fi; \
823@ENABLE_GTK_DOC_TRUE@	$(INSPECT_ENVIRONMENT) 					\
824@ENABLE_GTK_DOC_TRUE@	CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)"	\
825@ENABLE_GTK_DOC_TRUE@	CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS) $(WARNING_CFLAGS)"	\
826@ENABLE_GTK_DOC_TRUE@	LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)"				\
827@ENABLE_GTK_DOC_TRUE@	$(GST_DOC_SCANOBJ) $$scanobj_options --type-init-func="gst_init(NULL,NULL)"	\
828@ENABLE_GTK_DOC_TRUE@	    --module=$(DOC_MODULE) --source=$(PACKAGE) --inspect-dir=$(INSPECT_DIR) &&		\
829@ENABLE_GTK_DOC_TRUE@	    echo "  DOC   Merging introspection data" && \
830@ENABLE_GTK_DOC_TRUE@	    $(PYTHON)						\
831@ENABLE_GTK_DOC_TRUE@	    $(top_srcdir)/common/scangobj-merge.py $(DOC_MODULE) || exit 1;	\
832@ENABLE_GTK_DOC_TRUE@	if test x"$(srcdir)" != x. ; then				\
833@ENABLE_GTK_DOC_TRUE@	    for f in $(SCANOBJ_FILES);					\
834@ENABLE_GTK_DOC_TRUE@	    do								\
835@ENABLE_GTK_DOC_TRUE@	        cmp -s ./$$f $(srcdir)/$$f || cp ./$$f $(srcdir)/ ;		\
836@ENABLE_GTK_DOC_TRUE@	    done;							\
837@ENABLE_GTK_DOC_TRUE@	fi;								\
838@ENABLE_GTK_DOC_TRUE@	touch scanobj-build.stamp
839
840@ENABLE_GTK_DOC_TRUE@$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(SCANOBJ_FILES_O): scan-build.stamp
841@ENABLE_GTK_DOC_TRUE@	@true
842
843### scan headers; done on every build ###
844@ENABLE_GTK_DOC_TRUE@scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp
845@ENABLE_GTK_DOC_TRUE@	@echo '  DOC   Scanning header files'
846@ENABLE_GTK_DOC_TRUE@	@if test x"$(srcdir)" != x. ; then				\
847@ENABLE_GTK_DOC_TRUE@	    for f in $(SCANOBJ_FILES) $(SCAN_FILES);			\
848@ENABLE_GTK_DOC_TRUE@	    do								\
849@ENABLE_GTK_DOC_TRUE@	        if test -e $(srcdir)/$$f; then				\
850@ENABLE_GTK_DOC_TRUE@	            cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f .;	\
851@ENABLE_GTK_DOC_TRUE@	        fi;							\
852@ENABLE_GTK_DOC_TRUE@	    done;							\
853@ENABLE_GTK_DOC_TRUE@	fi
854@ENABLE_GTK_DOC_TRUE@	@_source_dir='' ;						\
855@ENABLE_GTK_DOC_TRUE@	for i in $(DOC_SOURCE_DIR) ; do					\
856@ENABLE_GTK_DOC_TRUE@	    _source_dir="$${_source_dir} --source-dir=$$i" ;	        \
857@ENABLE_GTK_DOC_TRUE@	done ;							        \
858@ENABLE_GTK_DOC_TRUE@	gtkdoc-scan							\
859@ENABLE_GTK_DOC_TRUE@	    $(SCAN_OPTIONS) $(EXTRA_HFILES)				\
860@ENABLE_GTK_DOC_TRUE@	    --module=$(DOC_MODULE)					\
861@ENABLE_GTK_DOC_TRUE@	    $${_source_dir}             				\
862@ENABLE_GTK_DOC_TRUE@	    --ignore-headers="$(IGNORE_HFILES)";			\
863@ENABLE_GTK_DOC_TRUE@	touch scan-build.stamp
864
865#### xml ####
866
867@ENABLE_GTK_DOC_TRUE@sgml-build.stamp: scan-build.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xsl $(expand_content_files)
868@ENABLE_GTK_DOC_TRUE@	@echo '  DOC   Building XML'
869@ENABLE_GTK_DOC_TRUE@	@-mkdir -p xml
870@ENABLE_GTK_DOC_TRUE@	@for a in $(inspect_files); do \
871@ENABLE_GTK_DOC_TRUE@	    xsltproc --stringparam module $(MODULE) \
872@ENABLE_GTK_DOC_TRUE@		$(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
873@ENABLE_GTK_DOC_TRUE@	@for f in $(EXAMPLE_CFILES); do \
874@ENABLE_GTK_DOC_TRUE@		$(PYTHON) $(top_srcdir)/common/c-to-xml.py $$f > xml/element-`basename $$f .c`.xml; done
875@ENABLE_GTK_DOC_TRUE@	@_source_dir='' ;						\
876@ENABLE_GTK_DOC_TRUE@	for i in $(DOC_SOURCE_DIR) ; do					\
877@ENABLE_GTK_DOC_TRUE@	    _source_dir="$${_source_dir} --source-dir=$$i" ;	        \
878@ENABLE_GTK_DOC_TRUE@	done ;								\
879@ENABLE_GTK_DOC_TRUE@	gtkdoc-mkdb \
880@ENABLE_GTK_DOC_TRUE@		--module=$(DOC_MODULE) \
881@ENABLE_GTK_DOC_TRUE@		$${_source_dir} \
882@ENABLE_GTK_DOC_TRUE@		 --expand-content-files="$(expand_content_files)" \
883@ENABLE_GTK_DOC_TRUE@		--main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) \
884@ENABLE_GTK_DOC_TRUE@		--output-format=xml \
885@ENABLE_GTK_DOC_TRUE@		--ignore-files="$(IGNORE_HFILES) $(IGNORE_CFILES)" \
886@ENABLE_GTK_DOC_TRUE@		$(MKDB_OPTIONS)
887@ENABLE_GTK_DOC_TRUE@	@$(PYTHON) $(top_srcdir)/common/mangle-db.py xml
888@ENABLE_GTK_DOC_TRUE@	@cp ../version.entities xml
889@ENABLE_GTK_DOC_TRUE@	@touch sgml-build.stamp
890
891@ENABLE_GTK_DOC_TRUE@sgml.stamp: sgml-build.stamp
892@ENABLE_GTK_DOC_TRUE@	@true
893
894#### html ####
895
896@ENABLE_GTK_DOC_TRUE@html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
897@ENABLE_GTK_DOC_TRUE@	@echo '  DOC   Building HTML'
898@ENABLE_GTK_DOC_TRUE@	@rm -rf html
899@ENABLE_GTK_DOC_TRUE@	@mkdir html
900@ENABLE_GTK_DOC_TRUE@	@cp $(srcdir)/$(DOC_MAIN_SGML_FILE) html
901@ENABLE_GTK_DOC_TRUE@	@for f in $(content_files); do cp $(srcdir)/$$f html; done
902@ENABLE_GTK_DOC_TRUE@	@cp -pr xml html
903@ENABLE_GTK_DOC_TRUE@	@cp ../version.entities html
904@ENABLE_GTK_DOC_TRUE@	@mkhtml_options=""; \
905@ENABLE_GTK_DOC_TRUE@	gtkdoc-mkhtml 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
906@ENABLE_GTK_DOC_TRUE@	if test "$(?)" = "0"; then \
907@ENABLE_GTK_DOC_TRUE@	  if test "x$(V)" = "x1"; then \
908@ENABLE_GTK_DOC_TRUE@	    mkhtml_options="$$mkhtml_options --verbose"; \
909@ENABLE_GTK_DOC_TRUE@	  fi; \
910@ENABLE_GTK_DOC_TRUE@	fi; \
911@ENABLE_GTK_DOC_TRUE@	cd html && gtkdoc-mkhtml $$mkhtml_options $(DOC_MODULE)-@GST_API_VERSION@ $(DOC_MAIN_SGML_FILE)
912@ENABLE_GTK_DOC_TRUE@	@rm -f html/$(DOC_MAIN_SGML_FILE)
913@ENABLE_GTK_DOC_TRUE@	@rm -rf html/xml
914@ENABLE_GTK_DOC_TRUE@	@rm -f html/version.entities
915@ENABLE_GTK_DOC_TRUE@	@test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
916@ENABLE_GTK_DOC_TRUE@	    if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
917@ENABLE_GTK_DOC_TRUE@	@echo '  DOC   Fixing cross-references'
918@ENABLE_GTK_DOC_TRUE@	@gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
919@ENABLE_GTK_DOC_TRUE@	@touch html-build.stamp
920
921@ENABLE_GTK_DOC_TRUE@clean-local-gtkdoc:
922@ENABLE_GTK_DOC_TRUE@	@rm -rf xml tmpl html
923# clean files copied for nonsrcdir templates build
924@ENABLE_GTK_DOC_TRUE@	@if test x"$(srcdir)" != x. ; then \
925@ENABLE_GTK_DOC_TRUE@	    rm -rf $(SCANOBJ_FILES) $(SCAN_FILES) $(REPORT_FILES) \
926@ENABLE_GTK_DOC_TRUE@	        $(MAINTAINER_DOC_STAMPS); \
927@ENABLE_GTK_DOC_TRUE@	fi
928@ENABLE_GTK_DOC_FALSE@all-local:
929@ENABLE_GTK_DOC_FALSE@clean-local-gtkdoc:
930
931clean-local: clean-local-gtkdoc
932	@rm -f *~ *.bak
933	@rm -rf .libs
934
935distclean-local:
936	@rm -f $(REPORT_FILES) \
937	        $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
938	@rm -rf tmpl/*.sgml.bak
939	@rm -f $(DOC_MODULE).hierarchy
940	@rm -f *.stamp || true
941	@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
942	    rm -f $(DOC_MODULE)-docs.sgml ; \
943	    rm -f $(DOC_MODULE).types ; \
944	    rm -f $(DOC_MODULE).interfaces ; \
945	    rm -f $(DOC_MODULE)-overrides.txt ; \
946	    rm -f $(DOC_MODULE).prerequisites ; \
947	    rm -f $(DOC_MODULE)-sections.txt ; \
948	    rm -rf tmpl/*.sgml ; \
949	    rm -rf $(INSPECT_DIR); \
950	fi
951	@rm -rf *.o
952
953# thomas: make docs parallel installable; devhelp requires majorminor too
954install-data-local:
955	(installfiles=`echo $(builddir)/html/*.sgml $(builddir)/html/*.html $(builddir)/html/*.png $(builddir)/html/*.css`; \
956	if test "$$installfiles" = '$(builddir)/html/*.sgml $(builddir)/html/*.html $(builddir)/html/*.png $(builddir)/html/*.css'; \
957	then echo '-- Nothing to install' ; \
958	else \
959	  $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
960	  for i in $$installfiles; do \
961	    echo '-- Installing '$$i ; \
962	    $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
963	  done; \
964	  pngfiles=`echo ./html/*.png`; \
965	  if test "$$pngfiles" != './html/*.png'; then \
966	    for i in $$pngfiles; do \
967	      echo '-- Installing '$$i ; \
968	      $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
969	    done; \
970	  fi; \
971	  echo '-- Installing $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2' ; \
972	  if test -e $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2; then \
973	            $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2 \
974	            $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2; \
975	  fi; \
976	  $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) || true ; \
977	fi)
978uninstall-local:
979	if test -d $(DESTDIR)$(TARGET_DIR); then \
980	  rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
981	  rmdir -p $(DESTDIR)$(TARGET_DIR) 2>/dev/null || true; \
982	else \
983	  echo '-- Nothing to uninstall' ; \
984	fi;
985
986#
987# Checks
988#
989@ENABLE_GTK_DOC_TRUE@check-hierarchy: $(DOC_MODULE).hierarchy
990@ENABLE_GTK_DOC_TRUE@	@if grep '	' $(DOC_MODULE).hierarchy; then \
991@ENABLE_GTK_DOC_TRUE@	    echo "$(DOC_MODULE).hierarchy contains tabs, please fix"; \
992@ENABLE_GTK_DOC_TRUE@	    /bin/false; \
993@ENABLE_GTK_DOC_TRUE@	fi
994
995@ENABLE_GTK_DOC_TRUE@check: check-hierarchy
996
997check-inspected-versions:
998	@echo Checking plugin versions of inspected plugin data ...; \
999	fail=0 ; \
1000	for each in $(inspect_files) ; do \
1001	  if (grep -H '<version>' $$each | grep -v '<version>$(VERSION)'); then \
1002	    echo $$each should be fixed to say version $(VERSION) or be removed ; \
1003	    echo "sed -i -e 's/<version.*version>/<version>$(VERSION)<\/version>/'" $$each; \
1004	    echo ; \
1005	    fail=1; \
1006	  fi ; \
1007	done ; \
1008	exit $$fail
1009
1010check-outdated-docs:
1011	$(AM_V_GEN)echo Checking for outdated plugin inspect data ...; \
1012	fail=0 ; \
1013	if [ -d $(top_srcdir)/.git/ ]; then \
1014	  files=`find $(srcdir)/inspect/ -name '*xml'`; \
1015	  for f in $$files; do \
1016	    ver=`grep '<version>$(PACKAGE_VERSION)</version>' $$f`; \
1017	    if test "x$$ver" = "x"; then \
1018	      plugin=`echo $$f | sed -e 's/^.*plugin-//' -e 's/.xml//'`; \
1019	      # echo "Checking $$plugin $$f"; \
1020	      pushd "$(top_srcdir)" >/dev/null; \
1021	      pinit=`git grep -A3 GST_PLUGIN_DEFINE -- ext/ gst/ sys/ | grep "\"$$plugin\""`; \
1022	      popd >/dev/null; \
1023	      # echo "[$$pinit]"; \
1024	      if test "x$$pinit" = "x"; then \
1025	        printf " **** outdated docs for plugin %-15s: %s\n" $$plugin $$f; \
1026	        fail=1; \
1027	      fi; \
1028	    fi; \
1029	  done; \
1030	fi ; \
1031	exit $$fail
1032
1033#
1034# Require gtk-doc when making dist
1035#
1036@ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc:
1037@ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
1038@ENABLE_GTK_DOC_FALSE@	@echo "*** gtk-doc must be installed and enabled in order to make dist"
1039@ENABLE_GTK_DOC_FALSE@	@false
1040
1041# FIXME: decide whether we want to dist generated html or not
1042# also this only works, if the project has been build before
1043# we could dist html only if its there, but that might lead to missing html in
1044# tarballs
1045dist-hook: dist-check-gtkdoc dist-hook-local
1046	mkdir $(distdir)/html
1047	cp html/* $(distdir)/html
1048	-cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
1049	-cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
1050	cd $(distdir) && rm -f $(DISTCLEANFILES)
1051	-gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
1052
1053.PHONY : dist-hook-local docs check-outdated-docs inspect
1054
1055# avoid spurious build errors when distchecking with -jN
1056.NOTPARALLEL:
1057
1058# Tell versions [3.59,3.63) of GNU make to not export all variables.
1059# Otherwise a system limit (for SysV at least) may be exceeded.
1060.NOEXPORT:
1061