# Makefile.in generated by automake 1.10.2 from Makefile.am.
# docs/plugins/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



# this snippet is to be included by both our docbook manuals
# and gtk-doc API references

# it adds an upload target to each of these dir's Makefiles

# each Makefile.am should define the following variables:
# - DOC: the base name of the documentation
#        (faq, manual, pwg, gstreamer, gstreamer-libs)
# - FORMATS: the formats in which DOC is output
#            (html ps pdf)

# if you want to use it, make sure your $HOME/.ssh/config file contains the
# correct User entry for the Host entry for the DOC_SERVER

# This is an include file specifically tuned for building documentation
# for GStreamer plug-ins

pkgdatadir = $(datadir)/gst-plugins-base
pkglibdir = $(libdir)/gst-plugins-base
pkgincludedir = $(includedir)/gst-plugins-base
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i486-slackware-linux-gnu
host_triplet = i486-slackware-linux-gnu
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
	$(top_srcdir)/common/gtk-doc-plugins.mak \
	$(top_srcdir)/common/upload-doc.mak
subdir = docs/plugins
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/common/m4/as-ac-expand.m4 \
	$(top_srcdir)/common/m4/as-auto-alt.m4 \
	$(top_srcdir)/common/m4/as-compiler-flag.m4 \
	$(top_srcdir)/common/m4/as-libtool.m4 \
	$(top_srcdir)/common/m4/as-python.m4 \
	$(top_srcdir)/common/m4/as-scrub-include.m4 \
	$(top_srcdir)/common/m4/as-version.m4 \
	$(top_srcdir)/common/m4/ax_create_stdint_h.m4 \
	$(top_srcdir)/common/m4/gst-arch.m4 \
	$(top_srcdir)/common/m4/gst-args.m4 \
	$(top_srcdir)/common/m4/gst-check.m4 \
	$(top_srcdir)/common/m4/gst-default.m4 \
	$(top_srcdir)/common/m4/gst-error.m4 \
	$(top_srcdir)/common/m4/gst-feature.m4 \
	$(top_srcdir)/common/m4/gst-function.m4 \
	$(top_srcdir)/common/m4/gst-gettext.m4 \
	$(top_srcdir)/common/m4/gst-glib2.m4 \
	$(top_srcdir)/common/m4/gst-plugin-docs.m4 \
	$(top_srcdir)/common/m4/gst-plugindir.m4 \
	$(top_srcdir)/common/m4/gst-x11.m4 \
	$(top_srcdir)/common/m4/gst.m4 \
	$(top_srcdir)/common/m4/gtk-doc.m4 \
	$(top_srcdir)/common/m4/pkg.m4 \
	$(top_srcdir)/common/m4/shave.m4 $(top_srcdir)/m4/freetype2.m4 \
	$(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gst-alsa.m4 \
	$(top_srcdir)/m4/gst-fionread.m4 $(top_srcdir)/m4/iconv.m4 \
	$(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \
	$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
	$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/lrint.m4 \
	$(top_srcdir)/m4/lrintf.m4 $(top_srcdir)/m4/ltoptions.m4 \
	$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
	$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \
	$(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/po.m4 \
	$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/vorbis.m4 \
	$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run aclocal-1.10
ACLOCAL_AMFLAGS = -I m4 -I common/m4
ALSA_CFLAGS = -I/usr/include/alsa  
ALSA_LIBS = -lasound  
AMTAR = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run tar
AM_MAKEFLAGS = `test -z $V && echo -s`
AR = ar
AS = as
AUDIORESAMPLE_FORMAT_AUTO = 
AUDIORESAMPLE_FORMAT_FLOAT = 
AUDIORESAMPLE_FORMAT_INT = 
AUTOCONF = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run autoconf
AUTOHEADER = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run autoheader
AUTOMAKE = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run automake-1.10
AWK = gawk
CC = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave cc gcc
CCASFLAGS = 
CCDEPMODE = depmode=gcc3
CDPARANOIA_LIBS = -lcdda_interface -lcdda_paranoia
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS = 
CXX = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave cxx 
CXXFLAGS = 
CYGPATH_W = echo
DEFAULT_AUDIOSINK = autoaudiosink
DEFAULT_AUDIOSRC = alsasrc
DEFAULT_VIDEOSINK = autovideosink
DEFAULT_VIDEOSRC = v4l2src
DEFAULT_VISUALIZER = goom
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DEPRECATED_CFLAGS = 
DLLTOOL = dlltool
DSYMUTIL = 
DUMPBIN = 
ECHO_C = 
ECHO_N = -n
ECHO_T = 
EGREP = /usr/bin/grep -E
ERROR_CFLAGS = -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith
EXEEXT = 
F77 = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave f77 
FC = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave fc 
FFLAGS = 
FGREP = /usr/bin/grep -F
FT2_CFLAGS = -I/usr/include/freetype2  
FT2_CONFIG = 
FT2_LIBS = -lfreetype -lz  
GCOV = 
GCOV_CFLAGS = 
GCOV_LIBS = 
GETTEXT_MACRO_VERSION = 0.17
GETTEXT_PACKAGE = gst-plugins-base-0.10
GIO_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
GIO_LDFLAGS = 
GIO_LIBS = -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GLIB_LIBS = -pthread -lgobject-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lglib-2.0  
GLIB_PREFIX = /usr
GLIB_REQ = 2.16
GMSGFMT = /usr/bin/msgfmt
GMSGFMT_015 = /usr/bin/msgfmt
GNOME_VFS_CFLAGS = -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
GNOME_VFS_LIBS = -pthread -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -lrt -lgmodule-2.0 -lgobject-2.0 -lglib-2.0  
GREP = /usr/bin/grep
GST_AGE = 17
GST_ALL_LDFLAGS = -no-undefined
GST_BASE_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2  
GST_BASE_LIBS = -pthread -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0  
GST_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   $(GST_OPTION_CFLAGS)
GST_CHECK_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2  
GST_CHECK_LIBS = -pthread -lgstcheck-0.10 -lcheck -lm -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0  
GST_CONTROLLER_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2  
GST_CONTROLLER_LIBS = -pthread -lgstcontroller-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0  
GST_CURRENT = 17
GST_DISABLE_ALLOC_TRACE = 0
GST_DISABLE_GST_DEBUG = 0
GST_DISABLE_LOADSAVE = 0
GST_DISABLE_PARSE = 0
GST_DISABLE_PLUGIN = 0
GST_DISABLE_REGISTRY = 0
GST_DISABLE_TRACE = 0
GST_DISABLE_XML = 0
GST_GDP_CFLAGS = -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2  
GST_GDP_LIBS = -pthread -lgstdataprotocol-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0  
GST_INSTALL_PLUGINS_HELPER = /usr/libexec/gst-install-plugins-helper
GST_LEVEL_DEFAULT = GST_LEVEL_NONE
GST_LIBS = -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0   $(GCOV_LIBS)
GST_LIBVERSION = 17:0:17
GST_LIB_LDFLAGS = -export-symbols-regex ^_?\(gst_\|Gst\|GST_\).*
GST_LICENSE = LGPL
GST_LT_LDFLAGS =  -version-info 17:0:17
GST_MAJORMINOR = 0.10
GST_OPTION_CFLAGS = $(ERROR_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(GCOV_CFLAGS) $(OPT_CFLAGS) $(DEPRECATED_CFLAGS)
GST_PACKAGE_NAME = GStreamer Base Plug-ins source release
GST_PACKAGE_ORIGIN = Unknown package origin
GST_PLUGINS_ALL =  adder app audioconvert audiorate audiotestsrc ffmpegcolorspace gdp playback audioresample subparse tcp typefind videotestsrc videorate videoscale volume
GST_PLUGINS_BASE_CFLAGS = -I$(top_srcdir)/gst-libs -I$(top_builddir)/gst-libs
GST_PLUGINS_DIR = /usr/lib/gstreamer-0.10
GST_PLUGINS_SELECTED =  adder app audioconvert audiorate audiotestsrc ffmpegcolorspace gdp playback audioresample subparse tcp typefind videotestsrc videorate videoscale volume
GST_PLUGIN_LDFLAGS = -module -avoid-version -export-symbols-regex '^_*gst_plugin_desc$$' -no-undefined
GST_PREFIX = /usr
GST_REVISION = 0
GST_TOOLS_DIR = /usr/bin
GTKDOC_CHECK = /usr/bin/gtkdoc-check
GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11 -lpango-1.0 -lm -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
GTK_X11_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
GTK_X11_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lXfixes -lcairo -lX11 -lpango-1.0 -lm -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
GUDEV_CFLAGS = 
GUDEV_LIBS = 
HAVE_CDPARANOIA = no
HAVE_X = yes
HAVE_XSHM = yes
HSTRERROR_LIBS = 
HTML_DIR = ${datadir}/gtk-doc/html
INSTALL = /usr/bin/ginstall -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
INTLLIBS = 
INTL_MACOSX_LIBS = 
LD = /usr/i486-slackware-linux/bin/ld
LDFLAGS = 
LIBICONV = /usr/lib/libiconv.so
LIBINTL = 
LIBM = -lm
LIBOBJS = 
LIBOIL_CFLAGS = -I/usr/include/liboil-0.3  
LIBOIL_LIBS = -loil-0.3 -lm -lrt  
LIBS = 
LIBTOOL = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave-libtool '$(SHELL) $(top_builddir)/libtool'
LIBVISUAL_CFLAGS = -I/usr/include/libvisual-0.4  
LIBVISUAL_LIBS = -lpthread -lm -ldl -lvisual-0.4  
LIPO = 
LN_S = ln -s
LOCALEDIR = /usr/share/locale
LTLIBICONV = -L/usr/lib -liconv
LTLIBINTL = 
LTLIBOBJS = 
MAINT = #
MAKEFLAGS = -s
MAKEINFO = ${SHELL} /GNOME1/NEU1/gst-plugins-base-0.10.24/missing --run makeinfo
MKDIR_P = /usr/bin/mkdir -p
MSGFMT = /usr/bin/msgfmt
MSGFMT_015 = /usr/bin/msgfmt
MSGMERGE = /usr/bin/msgmerge
NM = /usr/bin/nm -B
NMEDIT = 
OBJC = /bin/sh /GNOME1/NEU1/gst-plugins-base-0.10.24/common/shave objc 
OBJDUMP = objdump
OBJEXT = o
OGG_CFLAGS =  
OGG_LIBS = -logg  
OTOOL = 
OTOOL64 = 
PACKAGE = gst-plugins-base
PACKAGE_BUGREPORT = http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
PACKAGE_NAME = GStreamer Base Plug-ins
PACKAGE_STRING = GStreamer Base Plug-ins 0.10.24
PACKAGE_TARNAME = gst-plugins-base
PACKAGE_VERSION = 0.10.24
PACKAGE_VERSION_MAJOR = 0
PACKAGE_VERSION_MICRO = 24
PACKAGE_VERSION_MINOR = 10
PACKAGE_VERSION_NANO = 0
PACKAGE_VERSION_RELEASE = 1
PANGO_CFLAGS = -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2  
PANGO_LIBS = -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
PATH_SEPARATOR = :
PKG_CONFIG = /usr/bin/pkg-config
PLUGINDIR = /usr/lib/gstreamer-0.10
POSUB = po
PROFILE_CFLAGS = -g
PYTHON = /usr/local/bin/python
PYTHON_EXEC_PREFIX = ${exec_prefix}
PYTHON_PLATFORM = linux2
PYTHON_PREFIX = ${prefix}
PYTHON_VERSION = 2.5
Q = $(V:1=)
RANLIB = ranlib
SED = /usr/bin/sed
SET_MAKE = 
SHELL = /bin/sh
STRIP = strip
THEORA_CFLAGS =  
THEORA_LIBS = -ltheora -logg  
USE_NLS = yes
V = @
VALGRIND_CFLAGS = -I/usr/include/valgrind  
VALGRIND_LIBS = -L/usr/lib/valgrind/x86-linux -lcoregrind -lvex -lgcc  
VALGRIND_PATH = /usr/bin/valgrind
VERSION = 0.10.24
VORBISENC_LIBS = 
VORBISFILE_LIBS = 
VORBIS_CFLAGS =  
VORBIS_LIBS = -lvorbisenc -lvorbis -lm -logg  
WIN32_LIBS = 
XGETTEXT = /usr/bin/xgettext
XGETTEXT_015 = /usr/bin/xgettext
XGETTEXT_EXTRA_OPTIONS = 
XMKMF = 
XSHM_LIBS = -lXext
XVIDEO_LIBS = -lXv -lXext
X_CFLAGS = 
X_EXTRA_LIBS = 
X_LIBS =   -lSM -lICE  -lX11
X_PRE_LIBS =  -lSM -lICE
abs_builddir = /GNOME1/NEU1/gst-plugins-base-0.10.24/docs/plugins
abs_srcdir = /GNOME1/NEU1/gst-plugins-base-0.10.24/docs/plugins
abs_top_builddir = /GNOME1/NEU1/gst-plugins-base-0.10.24
abs_top_srcdir = /GNOME1/NEU1/gst-plugins-base-0.10.24
ac_ct_CC = gcc
ac_ct_DUMPBIN = 
am__include = include
am__leading_dot = .
am__quote = 
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = i486-slackware-linux-gnu
build_alias = i486-slackware-linux
build_cpu = i486
build_os = linux-gnu
build_vendor = slackware
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = i486-slackware-linux-gnu
host_alias = 
host_cpu = i486
host_os = linux-gnu
host_vendor = slackware
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = /usr/info
install_sh = $(SHELL) /GNOME1/NEU1/gst-plugins-base-0.10.24/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = /var
lt_ECHO = echo
mandir = /usr/man
mkdir_p = /usr/bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
pkgpyexecdir = ${pyexecdir}/gst-plugins-base
pkgpythondir = ${pythondir}/gst-plugins-base
plugindir = $(libdir)/gstreamer-0.10
prefix = /usr
program_transform_name = s,x,x,
psdir = ${docdir}
pyexecdir = ${exec_prefix}/lib/python2.5/site-packages
pythondir = ${prefix}/lib/python2.5/site-packages
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
shavedir = /GNOME1/NEU1/gst-plugins-base-0.10.24/common
srcdir = .
sysconfdir = /etc
target_alias = 
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..
GST_DOC_SCANOBJ = $(top_srcdir)/common/gstdoc-scangobj

# The name of the module, e.g. 'glib'.
#DOC_MODULE=gst-plugins-libs-0.10
MODULE = gst-plugins-base
DOC_MODULE = $(MODULE)-plugins

# for upload-doc.mak
DOC = $(MODULE)-plugins
FORMATS = html

# these variables define the location of the online docs
DOC_SERVER = gstreamer.freedesktop.org
DOC_BASE = /srv/gstreamer.freedesktop.org/www/data/doc
DOC_URL = $(DOC_SERVER):$(DOC_BASE)

# generated basefiles
#basefiles = \
#		$(DOC_MODULE)-sections.txt \
#		$(DOC_MODULE)-docs.sgml

# ugly hack to make -unused.sgml work
#unused-build.stamp:
#	BUILDDIR=`pwd` && \
#	cd $(srcdir)/tmpl && \
#	ln -sf gstreamer-libs-unused.sgml \
#		$$BUILDDIR/tmpl/gstreamer-libs-0.10-unused.sgml
#	touch unused-build.stamp

# these rules are added to create parallel docs using GST_MAJORMINOR
#$(basefiles): gstreamer-libs-0.10%: gstreamer-libs%
#	cp $< $@

#CLEANFILES = $(basefiles)

# The top-level SGML file. Change it if you want.
DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml

# The directory containing the source code. Relative to $(top_srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting functions and macros.
DOC_SOURCE_DIR = $(top_srcdir)

# Extra options to supply to gtkdoc-scan.
SCAN_OPTIONS = 

# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS = --sgml-mode

# Extra options to supply to gtkdoc-fixref.
FIXXREF_OPTIONS = --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html \
	--extra-dir=$(GST_PREFIX)/share/gtk-doc/html \
        	--extra-dir=$(datadir)/gtk-doc/html


# Used for dependencies.
HFILE_GLOB = $(DOC_SOURCE_DIR)/*/*/*.h
CFILE_GLOB = $(DOC_SOURCE_DIR)/*/*/*.c

# this is a wingo addition
# thomasvs: another nice wingo addition would be an explanation on why
# this is useful ;)
SCANOBJ_DEPS = 

# Header files to ignore when scanning.
IGNORE_HFILES = avcodec.h gstffmpegcodecmap.h dsputil.h arch.h speex_resampler.h speex_resampler_wrapper.h fixed_arm4.h fixed_arm5e.h fixed_bfin.h fixed_debug.h fixed_generic.h resample_sse.h
IGNORE_CFILES = utils.c mem.c imgconvert.c

# we add all .h files of elements that have signals/args we want
# sadly this also pulls in the private methods - maybe we should
# move those around in the source ?
# also, we should add some stuff here conditionally based on whether
# or not the plugin will actually build
# but I'm not sure about that - it might be this Just Works given that
# the registry won't have the element
EXTRA_HFILES = \
	$(top_srcdir)/ext/alsa/gstalsamixerelement.h \
	$(top_srcdir)/ext/alsa/gstalsasink.h \
	$(top_srcdir)/ext/alsa/gstalsasrc.h \
	$(top_srcdir)/ext/cdparanoia/gstcdparanoiasrc.h \
	$(top_srcdir)/ext/gio/gstgiosink.h \
	$(top_srcdir)/ext/gio/gstgiosrc.h \
	$(top_srcdir)/ext/gio/gstgiostreamsink.h \
	$(top_srcdir)/ext/gio/gstgiostreamsrc.h \
	$(top_srcdir)/ext/gnomevfs/gstgnomevfssink.h \
	$(top_srcdir)/ext/gnomevfs/gstgnomevfssrc.h \
	$(top_srcdir)/ext/ogg/gstoggdemux.h \
	$(top_srcdir)/ext/ogg/gstoggmux.h \
	$(top_srcdir)/ext/pango/gstclockoverlay.h \
	$(top_srcdir)/ext/pango/gsttextoverlay.h \
	$(top_srcdir)/ext/pango/gsttextrender.h \
	$(top_srcdir)/ext/pango/gsttimeoverlay.h \
	$(top_srcdir)/ext/theora/gsttheoradec.h \
	$(top_srcdir)/ext/theora/gsttheoraenc.h \
	$(top_srcdir)/ext/theora/gsttheoraparse.h \
	$(top_srcdir)/ext/vorbis/gstvorbisdec.h \
	$(top_srcdir)/ext/vorbis/gstvorbisenc.h \
	$(top_srcdir)/ext/vorbis/gstvorbisparse.h \
	$(top_srcdir)/ext/vorbis/gstvorbistag.h \
	$(top_srcdir)/gst/adder/gstadder.h \
	$(top_srcdir)/gst/audioconvert/audioconvert.h \
	$(top_srcdir)/gst/audioconvert/gstaudioconvert.h \
	$(top_srcdir)/gst/audiotestsrc/gstaudiotestsrc.h \
	$(top_srcdir)/gst/ffmpegcolorspace/gstffmpegcolorspace.h \
	$(top_srcdir)/gst/gdp/gstgdpdepay.h \
	$(top_srcdir)/gst/gdp/gstgdppay.h \
	$(top_srcdir)/gst/playback/gstplay-enum.h \
	$(top_srcdir)/gst/audioresample/gstaudioresample.h \
	$(top_srcdir)/gst/tcp/gstmultifdsink.h \
	$(top_srcdir)/gst/tcp/gsttcpclientsrc.h \
	$(top_srcdir)/gst/tcp/gsttcpclientsink.h \
	$(top_srcdir)/gst/tcp/gsttcpserversrc.h \
	$(top_srcdir)/gst/tcp/gsttcpserversink.h \
	$(top_srcdir)/gst/tcp/gsttcp-enumtypes.h \
	$(top_srcdir)/gst/tcp/gsttcp.h \
	$(top_srcdir)/gst/videorate/gstvideorate.h \
	$(top_srcdir)/gst/videoscale/gstvideoscale.h \
	$(top_srcdir)/gst/videotestsrc/gstvideotestsrc.h \
	$(top_srcdir)/gst/volume/gstvolume.h \
	$(top_srcdir)/sys/ximage/ximagesink.h \
	$(top_srcdir)/sys/xvimage/xvimagesink.h \
	$(top_srcdir)/gst-libs/gst/app/gstappsrc.h \
	$(top_srcdir)/gst-libs/gst/app/gstappsink.h


# Images to copy into HTML directory.
HTML_IMAGES = 

# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
content_files = 

# Other files to distribute.
extra_files = 

# 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
GTKDOC_LIBS = $(SCANOBJ_DEPS) $(GST_BASE_LIBS)
GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC)
GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC)

# If you need to override some of the declarations, place them in this file
# and uncomment this line.
#DOC_OVERRIDES = $(DOC_MODULE)-overrides.txt
DOC_OVERRIDES = 

# We set GPATH here; this gives us semantics for GNU make
# which are more like other make's VPATH, when it comes to
# whether a source that is a target of one rule is then
# searched for in VPATH/GPATH.
#
GPATH = $(srcdir)

# thomas: make docs parallel installable
TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)-0.10
EXTRA_DIST = \
	scanobj-build.stamp		\
	$(srcdir)/inspect/*.xml		\
	inspect.stamp			\
	inspect-build.stamp		\
	$(SCANOBJ_FILES)		\
	$(content_files)		\
	$(extra_files)			\
	$(HTML_IMAGES)			\
	$(DOC_MAIN_SGML_FILE)	\
	$(DOC_OVERRIDES)		\
	$(DOC_MODULE)-sections.txt

MAINTAINER_DOC_STAMPS = \
	scanobj-build.stamp		\
	inspect-build.stamp		\
	inspect.stamp


# we don't add inspect-build.stamp and scanobj-build.stamp here since they are
# built manually by docs maintainers and result is commited to git
DOC_STAMPS = \
	scan-build.stamp		\
	tmpl-build.stamp		\
	sgml-build.stamp		\
	html-build.stamp		\
	scan.stamp			\
	tmpl.stamp			\
	sgml.stamp			\
	html.stamp


# files generated/updated by gtkdoc-scangobj
SCANOBJ_FILES = \
	$(DOC_MODULE).signals           \
        $(DOC_MODULE).hierarchy         \
        $(DOC_MODULE).interfaces        \
        $(DOC_MODULE).prerequisites     \
	$(DOC_MODULE).types		\
        $(DOC_MODULE).args

SCANOBJ_FILES_O = \
	.libs/$(DOC_MODULE)-scan.o


# files generated/updated by gtkdoc-scan
SCAN_FILES = \
	$(DOC_MODULE)-sections.txt	\
	$(DOC_MODULE)-overrides.txt	\
	$(DOC_MODULE)-undocumented.txt	\
	$(DOC_MODULE)-decl.txt		\
	$(DOC_MODULE)-decl-list.txt

REPORT_FILES = \
	$(DOC_MODULE)-undocumented.txt \
	$(DOC_MODULE)-undeclared.txt \
	$(DOC_MODULE)-unused.txt


# FC3 seems to need -scan.c to be part of CLEANFILES for distcheck
# no idea why FC4 can do without
CLEANFILES = \
	$(SCANOBJ_FILES_O) \
	$(DOC_MODULE)-scan.c \
	$(REPORT_FILES) \
	$(DOC_STAMPS) \
	inspect-registry.xml


### inspect GStreamer plug-ins; done by documentation maintainer ###

# only look at the plugins in this module when building inspect .xml stuff
#INSPECT_REGISTRY = $(top_builddir)/docs/plugins/inspect-registry.xml
#INSPECT_ENVIRONMENT = \
#        GST_PLUGIN_SYSTEM_PATH= \
#        GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(top_builddir)/plugins:$(top_builddir)/src:$(top_builddir)/gnl \
#        GST_REGISTRY=$(INSPECT_REGISTRY)

MAINTAINERCLEANFILES = $(MAINTAINER_DOC_STAMPS)

# wildcard is apparently not portable to other makes, hence the use of find
inspect_files = $(shell find $(srcdir)/inspect -name '*.xml')
all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/common/upload-doc.mak $(top_srcdir)/common/gtk-doc-plugins.mak $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  docs/plugins/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  docs/plugins/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure: # $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:


distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) \
	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
	  dist-hook
check-am: all-am
check: check-am
all-am: Makefile all-local
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am

clean-am: clean-generic clean-libtool clean-local mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-local

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am: install-data-local

install-dvi: install-dvi-am

install-exec-am:

install-html: install-html-am

install-info: install-info-am

install-man:

install-pdf: install-pdf-am

install-ps: install-ps-am

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-local

.MAKE: install-am install-strip

.PHONY: all all-am all-local check check-am clean clean-generic \
	clean-libtool clean-local dist-hook distclean \
	distclean-generic distclean-libtool distclean-local distdir \
	dvi dvi-am html html-am info info-am install install-am \
	install-data install-data-am install-data-local install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
	install-pdf install-pdf-am install-ps install-ps-am \
	install-strip installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic mostlyclean \
	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
	uninstall uninstall-am uninstall-local

html: html-build.stamp

upload: $(FORMATS)
	@if test "x$(PACKAGE_VERSION_NANO)" = x0; then \
            export DOCVERSION=$(VERSION); \
        else export DOCVERSION=head; \
        fi; \
        export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
	ssh $(DOC_SERVER) mkdir -p $$DIR; \
	if echo $(FORMATS) | grep html > /dev/null; then \
	  echo "Preparing docs for upload (rebasing cross-references) ..." ; \
	  if test x$(builddir) != x$(srcdir); then \
	    echo "make upload can only be used if srcdir == builddir"; \
	    exit 1; \
	  fi; \
	  gtkdoc-rebase --online --html-dir=$(builddir)/html ; \
	  export SRC="$$SRC html"; \
	fi; \
	if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
	if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
	echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
	rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
	ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
	if echo $(FORMATS) | grep html > /dev/null; then \
	  echo "Un-preparing docs for upload (rebasing cross-references) ..." ; \
	  gtkdoc-rebase --html-dir=$(builddir)/html ; \
	fi; \
	echo Done

help:
	@echo
	@echo "If you are a doc maintainer, run 'make update' to update"
	@echo "the documentation files maintained in git"
	@echo
	@echo Other useful make targets:
	@echo
	@echo  check-inspected-versions: make sure the inspected plugin info
	@echo                            is up to date before a release
	@echo

# update the stuff maintained by doc maintainers
update:
	$(MAKE) inspect-update
	$(MAKE) scanobj-update

#all-local: html-build.stamp

#### scan gobjects; done by documentation maintainer ####
#scanobj-update:
#	-rm scanobj-build.stamp
#	$(MAKE) scanobj-build.stamp

# in the case of non-srcdir builds, the built gst directory gets added
# to gtk-doc scanning; but only then, to avoid duplicates
# FIXME: since we don't have the scan step as part of the build anymore,
# we could remove that
# TODO: finish elite script that updates the output files of this step
# instead of rewriting them, so that multiple maintainers can generate
# a collective set of args and signals
#scanobj-build.stamp: $(SCANOBJ_DEPS) $(basefiles)
#	@echo '*** Scanning GObjects ***'
#	if test x"$(srcdir)" != x. ; then				\
#	    for f in $(SCANOBJ_FILES);					\
#	    do								\
#	        cp $(srcdir)/$$f . ;					\
#	    done;							\
#	else								\
#	    $(INSPECT_ENVIRONMENT) 					\
#	    CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)"				\
#	    CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)"				\
#	    LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)"				\
#	    $(GST_DOC_SCANOBJ) --type-init-func="gst_init(NULL,NULL)"	\
#	        --module=$(DOC_MODULE) --source=$(PACKAGE) &&		\
#		$(PYTHON)						\
#		$(top_srcdir)/common/scangobj-merge.py $(DOC_MODULE);	\
#	fi
#	touch scanobj-build.stamp

#$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(SCANOBJ_FILES_O): scan-build.stamp
#	@true

# update the element and plugin XML descriptions; store in inspect/
#inspect:
#	mkdir inspect

#inspect-update: inspect
#	-rm -f $(INSPECT_REGISTRY) inspect-build.stamp
#	$(MAKE) inspect-build.stamp

# FIXME: inspect.stamp should be written to by gst-xmlinspect.py
# IF the output changed; see gtkdoc-mktmpl
#inspect-build.stamp:
#	@echo '*** Rebuilding plugin inspection files ***'
#	if test x"$(srcdir)" != x. ; then \
#	    cp $(srcdir)/inspect.stamp . ; \
#	    cp $(srcdir)/inspect-build.stamp . ; \
#	else \
#	    $(INSPECT_ENVIRONMENT) $(PYTHON) \
#	        $(top_srcdir)/common/gst-xmlinspect.py $(PACKAGE) inspect && \
#	    echo -n "timestamp" > inspect.stamp && \
#	    touch inspect-build.stamp; \
#        fi

### scan headers; done on every build ###
#scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp inspect-build.stamp
#	if test "x$(top_srcdir)" != "x$(top_builddir)" &&		\
#	   test -d "$(top_builddir)/gst";				\
#        then								\
#            export BUILT_OPTIONS="--source-dir=$(top_builddir)/gst";	\
#        fi;								\
#	gtkdoc-scan							\
#	    $(SCAN_OPTIONS) $(EXTRA_HFILES)				\
#	    --module=$(DOC_MODULE)					\
#	    $$BUILT_OPTIONS						\
#	    --ignore-headers="$(IGNORE_HFILES)";			\
#	touch scan-build.stamp

#### update templates; done on every build ####

### FIXME: make this error out again when docs are fixed for 0.9
# in a non-srcdir build, we need to copy files from the previous step
# and the files from previous runs of this step
#tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES)
#	@echo '*** Rebuilding template files ***'
#	if test x"$(srcdir)" != x. ; then				\
#	    for f in $(SCANOBJ_FILES) $(SCAN_FILES);			\
#	    do								\
#	        if test -e $(srcdir)/$$f; then cp $(srcdir)/$$f . ; fi; \
#	    done;							\
#	fi
#	gtkdoc-mktmpl --module=$(DOC_MODULE) | tee tmpl-build.log
#	$(PYTHON) \
#		$(top_srcdir)/common/mangle-tmpl.py $(srcdir)/inspect tmpl
#	@cat $(DOC_MODULE)-unused.txt
#	rm -f tmpl-build.log
#	touch tmpl-build.stamp

#tmpl.stamp: tmpl-build.stamp
#	@true

#### build xml; done on every build ####

### FIXME: make this error out again when docs are fixed for 0.9
#sgml-build.stamp: tmpl.stamp inspect.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xsl $(expand_content_files)
#	@echo '*** Building XML ***'
#	@-mkdir -p xml
#	@for a in $(srcdir)/inspect/*.xml; do \
#            xsltproc --stringparam module $(MODULE) \
#		$(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
#	@for f in $(EXAMPLE_CFILES); do \
#		$(PYTHON) $(top_srcdir)/common/c-to-xml.py $$f > xml/element-`basename $$f .c`.xml; done
#	gtkdoc-mkdb \
#		--module=$(DOC_MODULE) \
#		--source-dir=$(DOC_SOURCE_DIR) \
#                 --expand-content-files="$(expand_content_files)" \
#		--main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) \
#		--output-format=xml \
#		--ignore-files="$(IGNORE_HFILES) $(IGNORE_CFILES)" \
#		$(MKDB_OPTIONS) \
#		| tee sgml-build.log
#	@if grep "WARNING:" sgml-build.log > /dev/null; then true; fi # exit 1; fi
#	cp ../version.entities xml
#	rm sgml-build.log
#	touch sgml-build.stamp

#sgml.stamp: sgml-build.stamp
#	@true

#### build html; done on every step ####

#html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
#	@echo '*** Building HTML ***'
#	if test -d html; then rm -rf html; fi
#	mkdir html
#	cp $(srcdir)/$(DOC_MAIN_SGML_FILE) html
#	@for f in $(content_files); do cp $(srcdir)/$$f html; done
#	cp -pr xml html
#	cp ../version.entities html
#	cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE)
#	mv html/index.sgml html/index.sgml.bak
#	$(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-0.10\//g" html/index.sgml.bak >html/index.sgml
#	rm -f html/index.sgml.bak
#	rm -f html/$(DOC_MAIN_SGML_FILE)
#	rm -rf html/xml
#	rm -f html/version.entities
#	test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
#	    if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
#	@echo '-- Fixing Crossreferences'
#	gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
#	touch html-build.stamp

#clean-local-gtkdoc:
#	rm -rf xml tmpl html
# clean files copied for nonsrcdir templates build
#	if test x"$(srcdir)" != x. ; then \
#	    rm -rf $(SCANOBJ_FILES) $(SCAN_FILES); \
#	fi
all-local:
clean-local-gtkdoc:

clean-local: clean-local-gtkdoc
	rm -f *~ *.bak
	rm -rf .libs

distclean-local:
	rm -rf tmpl/*.sgml.bak
	rm -rf *.o

# thomas: make docs parallel installable; devhelp requires majorminor too
install-data-local:
	(installfiles=`echo $(srcdir)/html/*.sgml $(srcdir)/html/*.html $(srcdir)/html/*.png $(srcdir)/html/*.css`; \
	if test "$$installfiles" = '$(srcdir)/html/*.sgml $(srcdir)/html/*.html $(srcdir)/html/*.png $(srcdir)/html/*.css'; \
	then echo '-- Nothing to install' ; \
	else \
          $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
	  for i in $$installfiles; do \
	    echo '-- Installing '$$i ; \
	    $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
	  done; \
	  pngfiles=`echo ./html/*.png`; \
	  if test "$$pngfiles" != './html/*.png'; then \
	    for i in $$pngfiles; do \
	      echo '-- Installing '$$i ; \
	      $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
	    done; \
	  fi; \
	  echo '-- Installing $(srcdir)/html/$(DOC_MODULE).devhelp' ; \
	  $(INSTALL_DATA) $(srcdir)/html/$(DOC_MODULE).devhelp \
	    $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-0.10.devhelp; \
	  if test -e $(srcdir)/html/$(DOC_MODULE).devhelp2; then \
        	    $(INSTALL_DATA) $(srcdir)/html/$(DOC_MODULE).devhelp2 \
	           $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-0.10.devhelp2; \
	  fi; \
	  (which gtkdoc-rebase >/dev/null && \
	    gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \
	fi)
uninstall-local:
	if test -d $(DESTDIR)$(TARGET_DIR); then \
	  rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
	  rmdir -p $(DESTDIR)$(TARGET_DIR) 2>/dev/null || true; \
	else \
	  echo '-- Nothing to uninstall' ; \
	fi;

#
# Checks
#
check-hierarchy: $(DOC_MODULE).hierarchy
	@if grep '	' $(DOC_MODULE).hierarchy; then \
	    echo "$(DOC_MODULE).hierarchy contains tabs, please fix"; \
	    /bin/false; \
	fi

check: check-hierarchy

check-inspected-versions:
	@echo Checking plugin versions of inspected plugin data ...; \
	fail=0 ; \
	for each in $(inspect_files) ; do \
	  if (grep -H '<version>' $$each | grep -v '<version>$(VERSION)'); then \
	    echo $$each should be fixed to say version $(VERSION) or be removed ; \
	    echo "sed -i -e 's/<version.*version>/<version>$(VERSION)<\/version>/'" $$each; \
	    echo ; \
	    fail=1; \
	  fi ; \
	done ; \
	exit $$fail

#
# Require gtk-doc when making dist
#
#dist-check-gtkdoc:
dist-check-gtkdoc:
	@echo "*** gtk-doc must be installed and enabled in order to make dist"
	@false

# FIXME: decide whether we want to dist generated html or not
dist-hook: dist-check-gtkdoc dist-hook-local
	mkdir $(distdir)/html
	cp $(srcdir)/html/* $(distdir)/html
	-cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
	-cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
	cd $(distdir) && rm -f $(DISTCLEANFILES)
        -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html

.PHONY : dist-hook-local docs
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
