blob: 0c50aee1ccd952a68faaeb24e4a57de44c957035 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
REF_VERSION = $(PYGOBJECT_MAJOR_VERSION).$(PYGOBJECT_MINOR_VERSION)
FULL_VERSION = $(REF_VERSION).$(PYGOBJECT_MICRO_VERSION)
BUILDDIR = $(top_builddir)/docs
CSS_FILES = style.css
HTML_FILES = \
html/class-gobjectgboxed.html \
html/class-gobjectginterface.html \
html/class-gobjectgpointer.html \
html/class-gobject.html \
html/class-gobjectmaincontext.html \
html/class-gobjectmainloop.html \
html/gobject-class-reference.html \
html/gobject-constants.html \
html/gobject-functions.html \
html/index.html \
html/index.sgml \
html/pygobject.devhelp \
html/pygobject-introduction.html \
html/pygobject-reference-copyright.html
if ENABLE_DOCS
BUILT_HTML_FILES = $(HTML_FILES)
else
BUILT_HTML_FILES =
endif
XML_FILES = \
reference/pygobject.xml \
reference/pygobject-introduction.xml \
reference/pygobject-classes.xml \
reference/pygobject-constants.xml \
reference/pygobject-ref.xml \
reference/pygobject-functions.xml \
reference/pygobject-gboxed.xml \
reference/pygobject-ginterface.xml \
reference/pygobject-gpointer.xml \
reference/pygobject-maincontext.xml \
reference/pygobject-mainloop.xml
XSL_FILES = \
xsl/common.xsl \
xsl/devhelp.xsl \
xsl/html.xsl \
xsl/pdf-style.xsl \
xsl/pdf.xsl \
xsl/ref-html-style.xsl
# fixxref cannot be included in XSL_FILES, because automake is touching it
# so the date is newer then the files in HTML_FILES
FIXXREF = xsl/fixxref.py
CSSdir = $(HTMLdir)
CSS_DATA = $(CSS_FILES)
HTMLdir = $(datadir)/gtk-doc/html/pygobject
HTML_DATA = $(HTML_FILES)
XSLdir = $(datadir)/pygobject/xsl
XSL_DATA = $(XSL_FILES) $(FIXXREF)
BUILT_SOURCES = reference/builddate.xml $(BUILT_HTML_FILES)
CLEANFILES = reference/builddate.xml $(BUILT_HTML_FILES)
EXTRA_DIST = \
$(HTML_FILES) \
$(XML_FILES) \
$(XSL_FILES) \
$(FIXXREF) \
$(CSS_FILES)
reference/builddate.xml:
@$(PYTHON) -c 'import datetime; print datetime.date.today()' > $@
# Do not add a builddate.xml dependency here, because the generated html
# documentation will be included in the tarball so xsltproc is not needed to
# install the documentation. Adding a builddate.xml dependency will force
# the documentation to be rebuilt when it doesn't need to be.
$(HTML_FILES): $(XML_FILES) $(XSL_FILES)
@xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \
--path $(BUILDDIR)/reference:$(srcdir)/reference \
--stringparam gtkdoc.bookname "pygobject" \
--stringparam gtkdoc.version ${REF_VERSION} \
$(srcdir)/xsl/ref-html-style.xsl \
$(srcdir)/reference/pygobject-ref.xml
pdf: $(REFERENCE_DEPS) reference/builddate.xml
xsltproc --nonet --xinclude -o pygobject-ref.fo xsl/pdf-style.xsl \
reference/pygobject-ref.xml
pdfxmltex pygobject-ref.fo >output </dev/null
|