doc: refactored to be more mainstream
[adg.git] / docs / cpml / Makefile.am
blob1c26f32df592209d141b194fee0a99cdf1aeb730
1 include $(top_srcdir)/build/Makefile.am.common
3 DOC_MODULE=             cpml
4 DOC_MAIN_SGML_FILE=     $(DOC_MODULE)-docs.xml
5 DOC_SOURCE_DIR=         $(abs_top_srcdir)/src/cpml
6 SCANGOBJ_OPTIONS=
7 SCAN_OPTIONS=           --ignore-decorators="CPML_GNUC_CONST" \
8                         --rebuild-sections
9 MKDB_OPTIONS=           --name-space=cpml \
10                         --sgml-mode \
11                         --output-format=xml \
12                         --default-includes="$(DOC_MODULE)-1/$(DOC_MODULE).h"
13 MKHTML_OPTIONS=
14 FIXXREF_OPTIONS=        $(EXTRA_DIR)
15 HFILE_GLOB=             $(top_srcdir)/src/cpml/*.h
16 CFILE_GLOB=             $(top_srcdir)/src/cpml/*.c
17 IGNORE_HFILES=          cpml.h \
18                         cpml-internal.h \
19                         cpml-introspection.h \
20                         cpml-primitive-private.h \
21                         test-internal.h
22 HTML_IMAGES=
23 content_files=
24 expand_content_files=
26 include $(top_srcdir)/build/Makefile.am.gtk-doc
28 DISTCLEANFILES=         $(DOC_MODULE)-sections.txt
31 # Use an hand-crafted cpml.hierarchy file instead of an empty one.
32 # By default gtk-doc does not allow to have a file name that matches
33 # the type name to avoid id conflicts between the main section and
34 # the struct subsection: this is only allowed for GBoxed and GObject
35 # types.
36 # I *absolutely* want to have file names that match the type names,
37 # so using a fake cpml.hierarchy let gtk-doc treat the plain C
38 # structs of CPML as GBoxed types.
40 EXTRA_DIST+=            cpml.hierarchy.fake
42 scan-hook:
43         $(AM_V_at)test -f cpml.hierarchy || \
44             cp $(abs_srcdir)/cpml.hierarchy.fake cpml.hierarchy