summaryrefslogtreecommitdiff
path: root/docs/Makefile.am
blob: 6416f941a14d589832112651ad1ab9badb127f10 (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
BUILDDIR = $(top_builddir)/docs

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

HTML_STYLE = $(PYGOBJECT_DATADIR)/pygobject/xsl/ref-html-style.xsl
PDF_STYLE = $(PYGOBJECT_DATADIR)/pygobject/xsl/pdf-style.xsl

XMLFILES = 							\
	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
HTMLFILES =						\
	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

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

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

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

EXTRA_DIST = 		\
	$(XMLFILES)

REFERENCE_DEPS = 	\
	reference 	\
	$(XMLFILES)

if ENABLE_GTK_DOC

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

$(HTMLFILES): $(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
	$(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(BUILDDIR)/html 
	touch $@

endif