blob: 38a42080df18faa7c98cde255bbdce0dc0aabace (
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
101
102
103
104
105
106
107
|
ACLOCAL_AMFLAGS = -I m4
# the api, doc, include subdirs don't need their own Makefile.am
SUBDIRS = _dbus_bindings _dbus_glib_bindings dbus examples m4 test tools
CLEANFILES =
EXTRA_DIST = dbus-python.pc.in AUTHORS COPYING ChangeLog \
COPYING.LGPL-2.1 COPYING.GPL-2 COPYING.AFL-2.1
# miss out the gconf examples for now - they don't work
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dbus-python.pc
dbusincludedir = $(includedir)/dbus-1.0/dbus
dbusinclude_HEADERS = include/dbus-python.h
python_PYTHON = dbus_bindings.py
# === Tests ===
cross-test-compile: all
cross-test-server:
@$(MAKE) -C test cross-test-server
cross-test-client:
@$(MAKE) -C test cross-test-client
# === Documentation ===
ChangeLog: always-rebuild
@if test -d $(top_srcdir)/.git; then \
if git-log --stat > ChangeLog; then \
: ; \
else \
git-log > Changelog || exit 1; \
fi; \
fi
TXT_RSTDOCS = doc/tutorial.txt doc/API_CHANGES.txt doc/HACKING.txt
RSTDOCS = README NEWS TODO
dist_doc_DATA = $(TXT_RSTDOCS) $(RSTDOCS)
maintainer-update-website: _maintainer-update-apidocs \
_maintainer-update-htmldocs
if ENABLE_DOCS
_maintainer-update-htmldocs: $(HTML_TXT_RSTDOCS) $(HTML_RSTDOCS)
rsync -rtvzPp --chmod=Dg+s,ug+rwX,o=rX doc \
$(RSTDOCS) $(HTML_RSTDOCS) \
dbus.freedesktop.org:/srv/dbus.freedesktop.org/www/doc/dbus-python/
HTML_TXT_RSTDOCS = doc/tutorial.html doc/API_CHANGES.html doc/HACKING.html
HTML_RSTDOCS = README.html NEWS.html TODO.html
nodist_doc_DATA = $(HTML_TXT_RSTDOCS) $(HTML_RSTDOCS)
CLEANFILES += $(nodist_doc_DATA)
$(HTML_TXT_RSTDOCS) : %.html: %.txt
$(RST2HTML) $(RST2HTMLFLAGS) $< $@
$(HTML_RSTDOCS) : %.html: %
$(RST2HTML) $(RST2HTMLFLAGS) $< $@
else
_maintainer-update-htmldocs:
@echo "*** Not updating the HTML docs on the website - install rst2html"
@echo "*** from http://docutils.sourceforge.net/ and configure with "
@echo "*** --enable-html-docs"
endif
if ENABLE_API_DOCS
all: api/index.html
clean-local:
rm -rf api
dbus/.doc-needs-rebuild-stamp:
$(MAKE) -C dbus
_dbus_bindings/_dbus_bindings.la:
$(MAKE) -C _dbus_bindings
_dbus_glib_bindings/_dbus_glib_bindings.la:
$(MAKE) -C _dbus_glib_bindings
PWD = `pwd`
APIDOC_PYTHONPATH = $(PWD)/$(top_srcdir):$(PWD)/_dbus_bindings/.libs:$(PWD)/_dbus_glib_bindings/.libs
api api/index.html: $(python_PYTHON) dbus/.doc-needs-rebuild-stamp \
_dbus_bindings/_dbus_bindings.la \
_dbus_glib_bindings/_dbus_glib_bindings.la
rm -rf api
mkdir api
PYTHONPATH=$(APIDOC_PYTHONPATH) DBUS_PYTHON_NO_DEPRECATED=1 $(PYTHON) -Wignore::DeprecationWarning $(EPYDOC) -o api --html \
--docformat restructuredtext -v \
`find dbus -name '*.py' | grep -v dbus_bindings \
| sed -e 's#/__init__\.py##g' \
-e 's/\.py\>//g' -e 's#/#.#'g` \
|| { rm -rf api; exit 1; }
_maintainer-update-apidocs: api
rsync -rtvzPp --chmod=Dg+s,ug+rwX,o=rX api/ \
dbus.freedesktop.org:/srv/dbus.freedesktop.org/www/doc/dbus-python/api/
else
_maintainer-update-apidocs:
@echo "*** Not updating the API docs on the website - install epydoc 3"
@echo "*** alpha (or newer) and configure with --enable-api-docs"
endif
.PHONY: cross-test-compile cross-test-server cross-test-client \
always-rebuild maintainer-update-website \
_maintainer-update-apidocs _maintainer-update-htmldocs
|