2000-10-22 16:27:21 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
# The name of the module.
|
|
|
|
DOC_MODULE=gstreamer-libs
|
|
|
|
|
|
|
|
# The top-level SGML file.
|
|
|
|
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
|
|
|
|
|
|
|
|
# The directory containing the source code (if it contains documentation).
|
|
|
|
DOC_SOURCE_DIR=$(top_srcdir)/libs
|
|
|
|
|
2001-01-01 14:06:25 +00:00
|
|
|
EXTRA_DIST = $(DOC_MODULE)-docs.sgml $(DOC_MODULE)-sections.txt
|
|
|
|
|
2002-03-03 16:53:25 +00:00
|
|
|
HTML_DIR=@HTML_DIR@
|
2000-10-22 16:27:21 +00:00
|
|
|
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
|
|
|
|
|
|
|
|
if HAVE_GTK_DOC
|
2000-12-30 13:54:43 +00:00
|
|
|
html: html/book1.html
|
2000-10-22 16:27:21 +00:00
|
|
|
else
|
2000-12-30 13:54:43 +00:00
|
|
|
html:
|
2000-10-22 16:27:21 +00:00
|
|
|
endif
|
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
# rule to make the html
|
|
|
|
html/book1.html: sgml/$(DOC_MODULE)-doc.bottom $(DOC_MAIN_SGML_FILE)
|
|
|
|
if ! test -d html ; then mkdir html ; fi
|
|
|
|
-cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
2000-10-22 16:27:21 +00:00
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
# rule to cause scanning to be done
|
|
|
|
$(DOC_MODULE)-decl.txt:
|
2000-10-22 16:27:21 +00:00
|
|
|
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers=""
|
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
# rule to cause tmpls to be made
|
|
|
|
tmpl/$(DOC_MODULE)-unused.sgml: $(DOC_MODULE)-decl.txt $(DOC_MODULE)-sections.txt
|
2000-10-22 16:27:21 +00:00
|
|
|
gtkdoc-mktmpl --module=$(DOC_MODULE)
|
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
# rule to make sgml
|
|
|
|
sgml/$(DOC_MODULE)-doc.bottom: tmpl/$(DOC_MODULE)-unused.sgml
|
2000-10-22 16:27:21 +00:00
|
|
|
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
|
|
|
|
|
2000-12-30 14:46:09 +00:00
|
|
|
all-local: html
|
|
|
|
|
2000-10-22 16:27:21 +00:00
|
|
|
clean-local:
|
2001-04-22 16:04:19 +00:00
|
|
|
$(RM) -rf *~ *.bak *.signals *-unused.txt *.args html sgml tmpl/*.bak $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
|
2000-10-22 16:27:21 +00:00
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
install-data-local: html
|
2000-12-30 14:46:09 +00:00
|
|
|
@$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
|
|
|
@(installfiles=`echo $(srcdir)/html/*.html`; \
|
2000-10-22 16:27:21 +00:00
|
|
|
if test "$$installfiles" = '$(srcdir)/html/*.html'; \
|
|
|
|
then echo '-- Nothing to install' ; \
|
|
|
|
else \
|
|
|
|
for i in $$installfiles; do \
|
|
|
|
echo '-- Installing '$$i ; \
|
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
|
|
|
|
done; \
|
|
|
|
echo '-- Installing $(srcdir)/html/index.sgml' ; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
|
|
|
|
echo '-- Fixing Crossreferences' ; \
|
|
|
|
gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
|
|
|
|
fi)
|
|
|
|
|
2001-01-02 01:33:01 +00:00
|
|
|
uninstall-local:
|
2000-12-30 14:46:09 +00:00
|
|
|
@echo '-- Uninstalling '$(DESTDIR)$(TARGET_DIR) ; \
|
|
|
|
$(RM) -rf $(DESTDIR)$(TARGET_DIR)
|
|
|
|
|
2000-12-30 13:54:43 +00:00
|
|
|
.PHONY : html
|