summaryrefslogtreecommitdiff
path: root/docs/Makefile.am
blob: 506fe6a52632d1cb5b9b6e376df9a9a4723fc516 (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
95
96
97
98
99
100
BUILDDIR = $(top_builddir)/docs

REF_VERSION = $(VERSION)
FULL_VERSION = $(VERSION)

FIXXREF = $(srcdir)/xsl/fixxref.py
HTML_STYLE = $(srcdir)/xsl/ref-html-style.xsl

XML_FILES = 							\
	reference/caja-python-ref.xml			\
	reference/caja-python-overview.xml			\
	reference/caja-python-overview-example.xml			\
	reference/caja-python-overview-methods.xml			\
	reference/caja-python-class-reference.xml			\
	reference/caja-python-provider-reference.xml			\
	reference/caja-python-column.xml   \
	reference/caja-python-column-provider.xml   \
	reference/caja-python-menu.xml  \
	reference/caja-python-menu-item.xml \
	reference/caja-python-menu-provider.xml \
	reference/caja-python-property-page.xml \
	reference/caja-python-property-page-provider.xml \
	reference/caja-python-location-widget-provider.xml \
	reference/caja-python-file-info.xml \
	reference/caja-python-info-provider.xml \
	reference/caja-python-enum-reference.xml \
	reference/caja-python-operation-result.xml

HTMLdir = $(datadir)/gtk-doc/html/caja-python
HTML_FILES =						\
	html/index.html					\
	html/index.sgml					\
	html/caja-python-overview.html \
	html/caja-python-overview-example.html \
	html/caja-python-overview-methods.html \
	html/caja-python-class-reference.html \
	html/caja-python-provider-reference.html \
	html/class-caja-python-column.html \
	html/class-caja-python-column-provider.html \
	html/class-caja-python-menu.html  \
	html/class-caja-python-menu-item.html  \
	html/class-caja-python-menu-provider.html  \
	html/class-caja-python-property-page.html  \
	html/class-caja-python-property-page-provider.html  \
	html/class-caja-python-location-widget-provider.html  \
	html/class-caja-python-file-info.html  \
	html/class-caja-python-info-provider.html  \
	html/caja-python-enum-reference.html \
	html/enum-caja-python-operation-result.html  \
	html/caja-python.devhelp
HTML_DATA = $(HTML_FILES)

XSL_FILES =             \
	xsl/common.xsl      \
	xsl/devhelp.xsl     \
	xsl/html.xsl        \
	xsl/pdf-style.xsl   \
	xsl/pdf.xsl         \
	xsl/style.css

CSS_FILES = xsl/style.css
CSSdir = $(HTMLdir)
CSS_DATA = $(CSS_FILES)

BUILT_SOURCES = 		\
	reference/builddate.xml	\
	$(HTML_FILES)

CLEANFILES = 			\
	caja-python-ref.*	\
	reference/builddate.xml	\
	$(HTML_FILES)

EXTRA_DIST = 		\
	$(XML_FILES)     \
	$(XSL_FILES)    \
	$(FIXXREF)      \
	$(HTML_STYLE)

REFERENCE_DEPS = 	\
	reference 	\
	$(XML_FILES)    \
	$(XSL_FILES)    \
	$(FIXXREF)

if ENABLE_GTK_DOC

reference/builddate.xml: $(REFERENCE_DEPS)
	$(PYTHON) -c 'import datetime; print datetime.date.today()' > $@

$(HTML_FILES): $(REFERENCE_DEPS)
	xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \
		 --path $(BUILDDIR)/reference:$(srcdir)/reference \
		 --stringparam gtkdoc.bookname "caja-python" \
		 --stringparam gtkdoc.version ${REF_VERSION} \
		 $(HTML_STYLE) $(srcdir)/reference/caja-python-ref.xml
	$(FIXXREF) -i xsl $(BUILDDIR)/html
	touch $@

endif