MAINTAINERCLEANFILES = Makefile.in

gnome_xine_helpdir = $(DESTDIR)/$(datadir)/gnome/help/gnome-xine/C

gnome_xine_help_DATA =		\
	gnome-xine.html        

SGML_FILES =                    \
        gnome-xine.sgml

# files that aren't in a binary/data/library target have to be listed here
# to be included in the tarball when you 'make dist'
EXTRA_DIST = \
        $(SGML_FILES)

## The - before the command means to ignore it if it fails.  that way
## people can still build the software without the docbook tools

all:

gnome-xine.html: $(SGML_FILES)
	-db2html gnome-xine.sgml

## when we make dist, we include the generated HTML so people don't
## have to have the docbook tools
dist-hook:
	mkdir $(distdir)/gnome-xine
	-cp gnome-xine/*.html gnome-xine/*.css $(distdir)/gnome-xine
	-cp gnome-xine.html $(distdir)

install-data-local: gnome-xine.html
	echo "FIXME: gxine manual in doc/C"
#	$(mkinstalldirs) $(gnome_xine_helpdir)/images
#	-for file in $(srcdir)/gnome-xine/*.html $(srcdir)/gnome-xine/*.css; do \
#	basefile=`basename $$file`; \
#	$(INSTALL_DATA) $(srcdir)/$$file $(gnome_xine_helpdir)/$$basefile; \
#	done

gnome-xine.ps: gnome-xine.sgml
	-dv2ps $<

gnome-xine.rtf: gnome-xine.sgml       
	-db2rtf $<
