summaryrefslogtreecommitdiff
path: root/docs/reference/Makefile.am
blob: 937ac808cf90092cf01a26e83ba11a0ad7980161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
AUTOMAKE_OPTIONS = 1.6

# The name of the module.
DOC_MODULE=gi

# The top-level SGML file.
DOC_MAIN_SGML_FILE=gi-docs.sgml

# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=$(top_srcdir)/girepository

# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=

# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g --ignore-files=cmph

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

# Headers to ignore
IGNORE_HFILES= \
    girnode.h	    \
    ginfo.h	    \
    girparser.h	    \
    girwriter.h	    \
    girmodule.h

AM_CPPFLAGS=$(GIREPO_CFLAGS) -I$(top_srcdir)
GTKDOC_LIBS = $(GIREPO_LIBS) $(top_builddir)/libgirepository-1.0.la $(top_builddir)/libgirepository-internals.la

content_files = \
    gi-gir-reference.xml    \
    gi-gir.sgml		    \
    gi-overview.xml	    \
    gi-struct-hierarchy.xml

HTML_IMAGES = \
    $(srcdir)/images/overview.png

# Extra options to supply to gtkdoc-fixref
FIXXREF_OPTIONS=

# include common portion ...
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
EXTRA_DIST += version.xml.in

gtk-docs-clean:
	rm -fr html tmpl xml

clean-local: gtk-docs-clean

########################################################################

dist-hook-local: $(BUILT_EXTRA_DIST)
	files='$(BUILT_EXTRA_DIST)';				\
	for f in $$files; do					\
	  if test -f $$f; then d=.; else d=$(srcdir); fi;	\
	  cp $$d/$$f $(distdir) || exit 1; done