The ultimate gtk-doc makefile.

Mon Feb 12 12:42:45 2001  Owen Taylor  <otaylor@redhat.com>

	* {glib,gobject}/Makefile.am: The ultimate gtk-doc makefile.
This commit is contained in:
Owen Taylor 2001-02-12 17:43:44 +00:00 committed by Owen Taylor
parent aed994f714
commit d6fe9f43b3
5 changed files with 436 additions and 394 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 12 12:42:45 2001 Owen Taylor <otaylor@redhat.com>
* {glib,gobject}/Makefile.am: The ultimate gtk-doc makefile.
2001-02-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> 2001-02-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib/tmpl/threads.sgml, glib/glib-sections.txt: Added * glib/tmpl/threads.sgml, glib/glib-sections.txt: Added

View File

@ -6,12 +6,22 @@ DOC_MODULE=glib
# The top-level SGML file. # The top-level SGML file.
DOC_MAIN_SGML_FILE=glib-docs.sgml DOC_MAIN_SGML_FILE=glib-docs.sgml
# The directory containing the source code # The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=../../.. DOC_SOURCE_DIR=../../..
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=
# Extra options to supply to gtkdoc-fixref # Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS= FIXXREF_OPTIONS=
# Used for dependencies
HFILE_GLOB=$(top_srcdir)/*.h $(top_srcdir)/gmodule/*.h
CFILE_GLOB=$(top_srcdir)/*.c $(top_srcdir)/gmodule/*.c
# Headers to ignore # Headers to ignore
IGNORE_HFILES= \ IGNORE_HFILES= \
gobject \ gobject \
@ -22,64 +32,30 @@ IGNORE_HFILES= \
gunichartables.h \ gunichartables.h \
glibconfig-sysdefs.h glibconfig-sysdefs.h
tmpl_sources = \ # Extra files to add when scanning
tmpl/allocators.sgml \ EXTRA_HFILES=
tmpl/arrays.sgml \
tmpl/arrays_byte.sgml \
tmpl/arrays_pointer.sgml \
tmpl/async_queues.sgml \
tmpl/byte_order.sgml \
tmpl/caches.sgml \
tmpl/completion.sgml \
tmpl/datalist.sgml \
tmpl/datasets.sgml \
tmpl/date.sgml \
tmpl/error_reporting.sgml \
tmpl/fileutils.sgml \
tmpl/glib-unused.sgml \
tmpl/hash_tables.sgml \
tmpl/hooks.sgml \
tmpl/iochannels.sgml \
tmpl/limits.sgml \
tmpl/linked_lists_double.sgml \
tmpl/linked_lists_single.sgml \
tmpl/macros.sgml \
tmpl/macros_misc.sgml \
tmpl/main.sgml \
tmpl/markup.sgml \
tmpl/memory.sgml \
tmpl/memory_chunks.sgml \
tmpl/messages.sgml \
tmpl/misc_utils.sgml \
tmpl/modules.sgml \
tmpl/numerical.sgml \
tmpl/quarks.sgml \
tmpl/queue.sgml \
tmpl/random_numbers.sgml \
tmpl/relations.sgml \
tmpl/scanner.sgml \
tmpl/shell.sgml \
tmpl/spawn.sgml \
tmpl/string_chunks.sgml \
tmpl/string_utils.sgml \
tmpl/strings.sgml \
tmpl/thread_pools.sgml \
tmpl/threads.sgml \
tmpl/timers.sgml \
tmpl/trash_stack.sgml \
tmpl/trees-binary.sgml \
tmpl/trees-nary.sgml \
tmpl/type_conversion.sgml \
tmpl/types.sgml \
tmpl/unicode.sgml \
tmpl/warnings.sgml \
tmpl/windows.sgml
# Images to copy into HTML directory
HTML_IMAGES = \
mainloop-states.gif
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
content_files =
# Other files to distribute
extra_files = \ extra_files = \
mainloop-states.fig \ mainloop-states.fig \
mainloop-states.png \ mainloop-states.png \
mainloop-states.eps \ mainloop-states.eps
mainloop-states.gif
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
GTKDOC_CFLAGS =
GTKDOC_LIBS =
# Commands for compiling and linking
GTKDOC_CC=$(LIBTOOL) --mode=compile $(CC)
GTKDOC_LD=$(LIBTOOL) --mode=link $(CC)
#################################### ####################################
@ -89,60 +65,79 @@ extra_files = \
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
EXTRA_DIST = \ EXTRA_DIST = \
$(content_files) \
$(extra_files) \ $(extra_files) \
$(HTML_IMAGES) \
$(DOC_MAIN_SGML_FILE) \ $(DOC_MAIN_SGML_FILE) \
$(DOC_MODULE)-decl.txt \ $(DOC_MODULE).types \
$(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-sections.txt \
$(DOC_MODULE)-overrides.txt $(DOC_MODULE)-overrides.txt
DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp
if ENABLE_GTK_DOC if ENABLE_GTK_DOC
all-local: all-local: html-build.stamp
$(MAKE) scan
$(MAKE) templates
$(MAKE) sgml
$(MAKE) html.stamp
html.stamp: sgml.stamp $(EXTRA_SGML_FILES)
$(MAKE) html
DOC_STAMPS= html.stamp sgml.stamp
#all-local: html/index.html SCANOBJ_FILES = \
# $(DOC_MODULE).args \
#$(DOC_MODULE)-decl.txt: $(DOC_MODULE).hierarchy \
# $(MAKE) scan $(DOC_MODULE).signal
#
#$(tmpl_sources): $(DOC_MODULE)-decl.txt $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
# $(MAKE) templates
#
#sgml/$(DOC_MODULE)-doc.bottom: $(tmpl_sources) $(DOC_MODULE)-decl.txt
# $(MAKE) sgml
#
#html/index.html: sgml/$(DOC_MODULE)-doc.bottom $(DOC_MAIN_SGML_FILE)
# $(MAKE) html
endif
scan: scan-build.stamp: $(HFILE_GLOB)
-(cd $(srcdir) \ @echo '*** Scanning header files ***'
&& gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" ) cd $(srcdir) && ( \
if grep -l '^.+$$' $(DOC_MODULE).types > /dev/null ; then \
CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj --module=$(DOC_MODULE) ; \
else \
for i in $(SCANOBJ_FILES) ; do \
test -f $$i || touch $$i ; \
done \
fi )
cd $(srcdir) && \
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
touch scan-build.stamp
templates: check_scan:
$(MAKE) scan-build.stamp
$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): check_scan
tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
@echo '*** Rebuilding template files ***'
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
touch tmpl-build.stamp
sgml: check_templates:
cd $(srcdir) \ $(MAKE) tmpl-build.stamp
&& gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
html: tmpl.stamp: check_templates
sgml-build.stamp: tmpl.stamp $(CFILE_GLOB)
@echo '*** Building SGML ***'
cd $(srcdir) && \
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) $(MKDB_OPTIONS)
touch sgml-build.stamp
check_sgml:
$(MAKE) sgml-build.stamp
sgml.stamp: check_sgml
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE)
@echo '*** Building HTML ***'
test -d $(srcdir)/html || mkdir $(srcdir)/html test -d $(srcdir)/html || mkdir $(srcdir)/html
-cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
cp $(srcdir)/*.gif $(srcdir)/html test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
@echo '-- Fixing Crossreferences' @echo '-- Fixing Crossreferences'
cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
touch html-build.stamp
endif
clean-local: clean-local:
rm -f *~ *.bak *.signals *-unused.txt rm -f *~ *.bak $(SCANOBJ_FILES) *-unused.txt $(DOC_STAMPS) $(srcdir)/sgml.stamp
maintainer-clean-local: clean maintainer-clean-local: clean
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt $(DOC_STAMPS) cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local: install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
@ -169,7 +164,7 @@ dist-check-gtkdoc:
@false @false
endif endif
dist-hook: dist-check-gtkdoc dist-hook: dist-check-gtkdoc dist-hook-local
mkdir $(distdir)/tmpl mkdir $(distdir)/tmpl
mkdir $(distdir)/sgml mkdir $(distdir)/sgml
mkdir $(distdir)/html mkdir $(distdir)/html
@ -177,6 +172,9 @@ dist-hook: dist-check-gtkdoc
-cp $(srcdir)/sgml/*.sgml $(distdir)/sgml -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
-cp $(srcdir)/html/index.sgml $(distdir)/html -cp $(srcdir)/html/index.sgml $(distdir)/html
-cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(srcdir)/html/*.gif $(distdir)/html -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
for i in $(HTML_IMAGES) ; do \
cp $(srcdir)/$$i $(distdir)/html ; \
done
.PHONY : html sgml templates scan .PHONY : check_sgml check_templates check_scan dist-hook-local

View File

@ -1,34 +1,37 @@
<!-- ##### FUNCTION g_source_connect_indirect ##### --> <!-- ##### USER_FUNCTION GCompletionStrcmpFunc ##### -->
<para> <para>
</para> </para>
@source: @s1:
@callback_data: @s2:
@callback_funcs: @Returns:
<!-- ##### MACRO popen ##### --> <!-- ##### MACRO access ##### -->
<para> <para>
</para> </para>
<!-- ##### FUNCTION g_mem_check ##### --> <!-- ##### MACRO close ##### -->
<para>
Checks if the given memory has already been freed. If it has it outputs
a warning message.
To use this function you must configure glib with the flag
'--enable-mem-check=yes' before compiling.
</para>
@mem: the memory to check.
<!-- ##### MACRO pclose ##### -->
<para> <para>
</para> </para>
<!-- ##### MACRO fdopen ##### -->
<para>
</para>
<!-- ##### FUNCTION g_convert_error_quark ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION g_main_add_poll ##### --> <!-- ##### FUNCTION g_main_add_poll ##### -->
<para> <para>
Adds a file descriptor to be polled. Adds a file descriptor to be polled.
@ -45,36 +48,36 @@ the results may be needed.
See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH, See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
#G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW. #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
<!-- ##### MACRO lseek ##### --> <!-- ##### FUNCTION g_main_loop_destroy ##### -->
<para> <para>
</para> </para>
@loop:
<!-- ##### MACRO getpid ##### --> <!-- ##### FUNCTION g_main_remove_poll ##### -->
<para>
Removes a file descriptor from the list being polled.
</para>
@fd: the #GPollFD to remove.
<!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
<para> <para>
</para> </para>
@Returns:
<!-- ##### FUNCTION g_source_remove_by_source_data ##### --> <!-- ##### FUNCTION g_mem_check ##### -->
<para> <para>
Removes the first event source found with the given source data. Checks if the given memory has already been freed. If it has it outputs
</para> a warning message.
<para> To use this function you must configure glib with the flag
Event sources are sorted with the highest priority first. Sources with equal '--enable-mem-check=yes' before compiling.
priority are stored in the order in which they were added.
</para>
@source_data: the source data, which contains information specific to the
type of source.
@Returns: TRUE if an event source was found and removed.
<!-- ##### MACRO close ##### -->
<para>
</para> </para>
@mem: the memory to check.
<!-- ##### FUNCTION g_source_add ##### --> <!-- ##### FUNCTION g_source_add ##### -->
<para> <para>
@ -90,21 +93,6 @@ type of source.
@source: @source:
@context: @context:
<!-- ##### MACRO fdopen ##### -->
<para>
</para>
<!-- ##### USER_FUNCTION GCompletionStrcmpFunc ##### -->
<para>
</para>
@s1:
@s2:
@Returns:
<!-- ##### FUNCTION g_source_connect ##### --> <!-- ##### FUNCTION g_source_connect ##### -->
<para> <para>
@ -115,68 +103,80 @@ type of source.
@data: @data:
@notify: @notify:
<!-- ##### FUNCTION g_source_connect_indirect ##### -->
<para>
</para>
@source:
@callback_data:
@callback_funcs:
<!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
<para>
Removes the first event source found with the given source data.
</para>
<para>
Event sources are sorted with the highest priority first. Sources with equal
priority are stored in the order in which they were added.
</para>
@source_data: the source data, which contains information specific to the
type of source.
@Returns: TRUE if an event source was found and removed.
<!-- ##### MACRO g_string ##### -->
<para>
Turns the argument into a string literal by using the '#' stringizing operator.
</para>
@x: text to convert to a literal string.
<!-- ##### MACRO getcwd ##### --> <!-- ##### MACRO getcwd ##### -->
<para> <para>
</para> </para>
<!-- ##### MACRO getpid ##### -->
<para>
</para>
<!-- ##### MACRO lseek ##### -->
<para>
</para>
<!-- ##### MACRO open ##### -->
<para>
</para>
<!-- ##### MACRO pclose ##### -->
<para>
</para>
<!-- ##### MACRO popen ##### -->
<para>
</para>
<!-- ##### MACRO read ##### -->
<para>
</para>
<!-- ##### MACRO write ##### --> <!-- ##### MACRO write ##### -->
<para> <para>
</para> </para>
<!-- ##### FUNCTION g_main_remove_poll ##### -->
<para>
Removes a file descriptor from the list being polled.
</para>
@fd: the #GPollFD to remove.
<!-- ##### MACRO access ##### -->
<para>
</para>
<!-- ##### MACRO g_string ##### -->
<para>
Turns the argument into a string literal by using the '#' stringizing operator.
</para>
@x: text to convert to a literal string.
<!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
<para>
</para>
@Returns:
<!-- ##### MACRO read ##### -->
<para>
</para>
<!-- ##### FUNCTION g_main_loop_destroy ##### -->
<para>
</para>
@loop:
<!-- ##### FUNCTION g_convert_error_quark ##### -->
<para>
</para>
@Returns:
<!-- ##### MACRO open ##### -->
<para>
</para>

View File

@ -6,31 +6,47 @@ DOC_MODULE=gobject
# The top-level SGML file. # The top-level SGML file.
DOC_MAIN_SGML_FILE=gobject-docs.sgml DOC_MAIN_SGML_FILE=gobject-docs.sgml
# The directory containing the source code (if it contains documentation). # The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=../../../gobject DOC_SOURCE_DIR=../../../gobject
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=
# Extra options to supply to gtkdoc-fixref # Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html
# Used for dependencies
HFILE_GLOB=$(top_srcdir)/gobject/*.h
CFILE_GLOB=$(top_srcdir)/gobject/*.c
# Headers to ignore # Headers to ignore
IGNORE_HFILES= \ IGNORE_HFILES= \
gbsearcharray.h gbsearcharray.h
tmpl_sources = \ # Extra files to add when scanning
tmpl/closures.sgml \ EXTRA_HFILES=
tmpl/enumerations_flags.sgml \
tmpl/gboxed.sgml \ # Images to copy into HTML directory
tmpl/generic_values.sgml \ HTML_IMAGES =
tmpl/gobject-unused.sgml \
tmpl/gtypemodule.sgml \ # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
tmpl/gtypeplugin.sgml \ content_files =
tmpl/objects.sgml \
tmpl/param_specs.sgml \ # Other files to distribute
tmpl/signals.sgml \ extra_files =
tmpl/standard_params.sgml \
tmpl/types.sgml \ # CFLAGS and LDFLAGS for compiling scan program. Only needed
tmpl/value_collection.sgml \ # if $(DOC_MODULE).types is non-empty.
tmpl/value_types.sgml GTKDOC_CFLAGS =
GTKDOC_LIBS =
# Commands for compiling and linking
GTKDOC_CC=$(LIBTOOL) --mode=compile $(CC)
GTKDOC_LD=$(LIBTOOL) --mode=link $(CC)
#################################### ####################################
# Everything below here is generic # # Everything below here is generic #
@ -39,58 +55,79 @@ tmpl_sources = \
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
EXTRA_DIST = \ EXTRA_DIST = \
$(content_files) \
$(extra_files) \
$(HTML_IMAGES) \
$(DOC_MAIN_SGML_FILE) \ $(DOC_MAIN_SGML_FILE) \
$(DOC_MODULE)-decl.txt \ $(DOC_MODULE).types \
$(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-sections.txt \
$(DOC_MODULE)-overrides.txt $(DOC_MODULE)-overrides.txt
if ENABLE_GTK_DOC DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp
all-local:
$(MAKE) scan
$(MAKE) templates
$(MAKE) sgml
$(MAKE) html.stamp
html.stamp: sgml.stamp $(EXTRA_SGML_FILES)
$(MAKE) html
DOC_STAMPS= html.stamp sgml.stamp
#all-local: html/index.html if ENABLE_GTK_DOC
# all-local: html-build.stamp
#$(DOC_MODULE)-decl.txt:
# $(MAKE) scan SCANOBJ_FILES = \
# $(DOC_MODULE).args \
#$(tmpl_sources): $(DOC_MODULE)-decl.txt $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(DOC_MODULE).hierarchy \
# $(MAKE) templates $(DOC_MODULE).signal
#
#sgml/$(DOC_MODULE)-doc.bottom: $(tmpl_sources) $(DOC_MODULE)-decl.txt scan-build.stamp: $(HFILE_GLOB)
# $(MAKE) sgml @echo '*** Scanning header files ***'
# cd $(srcdir) && ( \
#html/index.html: sgml/$(DOC_MODULE)-doc.bottom $(DOC_MAIN_SGML_FILE) if grep -l '^.+$$' $(DOC_MODULE).types > /dev/null ; then \
# $(MAKE) html CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj --module=$(DOC_MODULE) ; \
else \
for i in $(SCANOBJ_FILES) ; do \
test -f $$i || touch $$i ; \
done \
fi )
cd $(srcdir) && \
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
touch scan-build.stamp
check_scan:
$(MAKE) scan-build.stamp
$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): check_scan
tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
@echo '*** Rebuilding template files ***'
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
touch tmpl-build.stamp
check_templates:
$(MAKE) tmpl-build.stamp
tmpl.stamp: check_templates
sgml-build.stamp: tmpl.stamp $(CFILE_GLOB)
@echo '*** Building SGML ***'
cd $(srcdir) && \
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) $(MKDB_OPTIONS)
touch sgml-build.stamp
check_sgml:
$(MAKE) sgml-build.stamp
sgml.stamp: check_sgml
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE)
@echo '*** Building HTML ***'
test -d $(srcdir)/html || mkdir $(srcdir)/html
cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
@echo '-- Fixing Crossreferences'
cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
touch html-build.stamp
endif endif
scan:
-(cd $(srcdir) \
&& gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)")
templates:
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
sgml:
cd $(srcdir) \
&& gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
html:
test -d $(srcdir)/html || mkdir $(srcdir)/html
-cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
@echo '-- Fixing Crossreferences'
gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
clean-local: clean-local:
rm -f *~ *.bak *.signals *-unused.txt rm -f *~ *.bak $(SCANOBJ_FILES) *-unused.txt $(DOC_STAMPS) $(srcdir)/sgml.stamp
maintainer-clean-local: clean maintainer-clean-local: clean
cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt $(DOC_STAMPS) cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
install-data-local: install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
@ -117,7 +154,7 @@ dist-check-gtkdoc:
@false @false
endif endif
dist-hook: dist-check-gtkdoc dist-hook: dist-check-gtkdoc dist-hook-local
mkdir $(distdir)/tmpl mkdir $(distdir)/tmpl
mkdir $(distdir)/sgml mkdir $(distdir)/sgml
mkdir $(distdir)/html mkdir $(distdir)/html
@ -126,5 +163,8 @@ dist-hook: dist-check-gtkdoc
-cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
-cp $(srcdir)/html/index.sgml $(distdir)/html -cp $(srcdir)/html/index.sgml $(distdir)/html
-cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
for i in $(HTML_IMAGES) ; do \
cp $(srcdir)/$$i $(distdir)/html ; \
done
.PHONY : html sgml templates scan .PHONY : check_sgml check_templates check_scan dist-hook-local

View File

@ -1,20 +1,8 @@
<!-- ##### FUNCTION g_type_conforms_to ##### --> <!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Long_Description ##### -->
<para> <para>
</para> </para>
@type:
@iface_type:
@Returns:
<!-- ##### FUNCTION g_object_class_install_param ##### -->
<para>
</para>
@oclass:
@param_id:
@pspec:
<!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:See_Also ##### --> <!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:See_Also ##### -->
<para> <para>
@ -22,56 +10,13 @@
</para> </para>
<!-- ##### FUNCTION g_param_spec_hash_table_insert ##### --> <!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Short_Description ##### -->
<para>
</para>
@hash_table:
@pspec:
@owner_type:
<!-- ##### MACRO G_IS_PARAM_VALUE ##### --> <!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Title ##### -->
<para> gtypemodule.sgml
</para>
@pspec:
@value:
<!-- ##### FUNCTION g_type_instance_conforms_to ##### -->
<para>
</para>
@instance:
@iface_type:
@Returns:
<!-- ##### FUNCTION g_object_get_param ##### -->
<para>
</para>
@object:
@param_name:
@value:
<!-- ##### USER_FUNCTION GTypePluginRef ##### -->
<para>
</para>
@plugin:
<!-- ##### FUNCTION g_object_set_param ##### -->
<para>
</para>
@object:
@param_name:
@value:
<!-- ##### USER_FUNCTION GObjectGetParamFunc ##### --> <!-- ##### USER_FUNCTION GObjectGetParamFunc ##### -->
<para> <para>
@ -84,11 +29,16 @@
@pspec: @pspec:
@trailer: @trailer:
<!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Long_Description ##### --> <!-- ##### USER_FUNCTION GObjectSetParamFunc ##### -->
<para> <para>
</para> </para>
@object:
@param_id:
@value:
@pspec:
@trailer:
<!-- ##### ENUM GSignalType ##### --> <!-- ##### ENUM GSignalType ##### -->
<para> <para>
@ -102,83 +52,15 @@
@G_SIGNAL_ACTION: @G_SIGNAL_ACTION:
@G_SIGNAL_NO_HOOKS: @G_SIGNAL_NO_HOOKS:
<!-- ##### FUNCTION g_signal_type_closure_new ##### --> <!-- ##### USER_FUNCTION GTypePluginFillInterfaceInfo ##### -->
<para>
</para>
@itype:
@struct_offset:
@Returns:
<!-- ##### FUNCTION g_object_class_find_param_spec ##### -->
<para>
</para>
@oclass:
@param_name:
@Returns:
<!-- ##### FUNCTION g_object_queue_param_changed ##### -->
<para>
</para>
@object:
@param_name:
<!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Title ##### -->
gtypemodule.sgml
<!-- ##### USER_FUNCTION GTypePluginUnRef ##### -->
<para> <para>
</para> </para>
@plugin: @plugin:
@interface_type:
<!-- ##### FUNCTION g_param_spec_hash_table_lookup ##### --> @instance_type:
<para> @info:
</para>
@hash_table:
@param_name:
@owner_type:
@try_ancestors:
@trailer:
@Returns:
<!-- ##### USER_FUNCTION GObjectSetParamFunc ##### -->
<para>
</para>
@object:
@param_id:
@value:
@pspec:
@trailer:
<!-- ##### FUNCTION g_type_value_conforms_to ##### -->
<para>
</para>
@value:
@type:
@Returns:
<!-- ##### FUNCTION g_type_is_dynamic ##### -->
<para>
</para>
@type:
@flags:
@Returns:
<!-- ##### USER_FUNCTION GTypePluginFillTypeInfo ##### --> <!-- ##### USER_FUNCTION GTypePluginFillTypeInfo ##### -->
<para> <para>
@ -190,12 +72,19 @@ gtypemodule.sgml
@info: @info:
@value_table: @value_table:
<!-- ##### FUNCTION g_signals_destroy ##### --> <!-- ##### USER_FUNCTION GTypePluginRef ##### -->
<para> <para>
</para> </para>
@itype: @plugin:
<!-- ##### USER_FUNCTION GTypePluginUnRef ##### -->
<para>
</para>
@plugin:
<!-- ##### STRUCT GTypePluginVTable ##### --> <!-- ##### STRUCT GTypePluginVTable ##### -->
<para> <para>
@ -207,15 +96,13 @@ gtypemodule.sgml
@complete_type_info: @complete_type_info:
@complete_interface_info: @complete_interface_info:
<!-- ##### USER_FUNCTION GTypePluginFillInterfaceInfo ##### --> <!-- ##### MACRO G_IS_PARAM_VALUE ##### -->
<para> <para>
</para> </para>
@plugin: @pspec:
@interface_type: @value:
@instance_type:
@info:
<!-- ##### MACRO G_NOTIFY_PRIORITY ##### --> <!-- ##### MACRO G_NOTIFY_PRIORITY ##### -->
<para> <para>
@ -232,9 +119,70 @@ gtypemodule.sgml
@param_id: @param_id:
@pspec: @pspec:
<!-- ##### SECTION ./tmpl/gtypemodule.sgml.sgml:Short_Description ##### --> <!-- ##### FUNCTION g_object_class_find_param_spec ##### -->
<para>
</para>
@oclass:
@param_name:
@Returns:
<!-- ##### FUNCTION g_object_class_install_param ##### -->
<para>
</para>
@oclass:
@param_id:
@pspec:
<!-- ##### FUNCTION g_object_get_param ##### -->
<para>
</para>
@object:
@param_name:
@value:
<!-- ##### FUNCTION g_object_queue_param_changed ##### -->
<para>
</para>
@object:
@param_name:
<!-- ##### FUNCTION g_object_set_param ##### -->
<para>
</para>
@object:
@param_name:
@value:
<!-- ##### FUNCTION g_param_spec_hash_table_insert ##### -->
<para>
</para>
@hash_table:
@pspec:
@owner_type:
<!-- ##### FUNCTION g_param_spec_hash_table_lookup ##### -->
<para>
</para>
@hash_table:
@param_name:
@owner_type:
@try_ancestors:
@trailer:
@Returns:
<!-- ##### FUNCTION g_param_spec_hash_table_new ##### --> <!-- ##### FUNCTION g_param_spec_hash_table_new ##### -->
<para> <para>
@ -251,3 +199,55 @@ gtypemodule.sgml
@hash_table: @hash_table:
@pspec: @pspec:
<!-- ##### FUNCTION g_signal_type_closure_new ##### -->
<para>
</para>
@itype:
@struct_offset:
@Returns:
<!-- ##### FUNCTION g_signals_destroy ##### -->
<para>
</para>
@itype:
<!-- ##### FUNCTION g_type_conforms_to ##### -->
<para>
</para>
@type:
@iface_type:
@Returns:
<!-- ##### FUNCTION g_type_instance_conforms_to ##### -->
<para>
</para>
@instance:
@iface_type:
@Returns:
<!-- ##### FUNCTION g_type_is_dynamic ##### -->
<para>
</para>
@type:
@flags:
@Returns:
<!-- ##### FUNCTION g_type_value_conforms_to ##### -->
<para>
</para>
@value:
@type:
@Returns: