2011-01-13 18:37:53 +00:00
|
|
|
apidir = @htmldir@/api
|
|
|
|
|
|
2013-06-26 12:33:29 +01:00
|
|
|
man_pages = \
|
2010-09-08 22:10:47 +01:00
|
|
|
dbus-cleanup-sockets.1 \
|
2013-02-12 16:01:16 +00:00
|
|
|
dbus-daemon.1 \
|
2010-09-08 22:10:47 +01:00
|
|
|
dbus-launch.1 \
|
|
|
|
|
dbus-monitor.1 \
|
2012-02-07 17:45:16 +00:00
|
|
|
dbus-run-session.1 \
|
2010-09-08 22:10:47 +01:00
|
|
|
dbus-send.1 \
|
2015-02-11 16:59:42 +00:00
|
|
|
dbus-test-tool.1 \
|
Add dbus-update-activation-environment tool
If OS builders (distributions) have chosen to use the per-user bus,
this provides two possible modes of operation for compatibility with
existing X session startup hooks.
A legacy-free system can just upload DISPLAY, XAUTHORITY and possibly
DBUS_SESSION_BUS_ADDRESS into dbus-daemon's and systemd's activation
environments, similar to
http://cgit.freedesktop.org/systemd/systemd/tree/xorg/50-systemd-user.sh
installed by systemd (but unlike systemctl,
dbus-update-activation-environment works for traditional
D-Bus-activated services, not just for systemd services).
A system where compatibility is required for environment variables
exported by snippets in /etc/X11/xinit/xinitrc.d (in Red Hat derivatives,
Gentoo, etc.) or /etc/X11/Xsession.d (Debian derivatives) can upload
the entire environment of the X session, minus some selected environment
variables which are specific to a login session (notably XDG_SESSION_ID).
In Debian, I plan to put the former in a new dbus-user-session package
that enables a user-session-centric mode of operation for D-Bus,
and the latter in the existing dbus-x11 package, with the intention that
dbus-x11 eventually becomes a tool for change-averse setups or goes
away entirely.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61301
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
2015-02-11 15:47:53 +00:00
|
|
|
dbus-update-activation-environment.1 \
|
2013-06-26 12:33:29 +01:00
|
|
|
dbus-uuidgen.1 \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
MAN_XML_FILES = $(patsubst %.1,%.1.xml,$(man_pages))
|
|
|
|
|
|
|
|
|
|
if DBUS_XML_DOCS_ENABLED
|
|
|
|
|
man1_MANS = $(man_pages)
|
2013-02-12 16:01:16 +00:00
|
|
|
endif
|
2010-09-08 22:10:47 +01:00
|
|
|
|
2013-06-26 12:33:29 +01:00
|
|
|
MAN_HTML_FILES = $(patsubst %.1,%.1.html,$(man_pages))
|
2010-09-08 22:38:22 +01:00
|
|
|
|
2016-10-01 21:23:16 +02:00
|
|
|
dtddir = $(datadir)/xml/dbus-1
|
|
|
|
|
dist_dtd_DATA = \
|
2010-09-09 13:15:57 +01:00
|
|
|
busconfig.dtd \
|
|
|
|
|
introspect.dtd
|
|
|
|
|
|
2011-08-15 10:23:04 +01:00
|
|
|
dist_doc_DATA = system-activation.txt
|
2011-04-12 13:06:25 +01:00
|
|
|
|
2011-09-20 18:44:25 +01:00
|
|
|
# uploaded and distributed, but not installed
|
2011-04-12 13:06:25 +01:00
|
|
|
STATIC_DOCS = \
|
2010-09-09 13:15:57 +01:00
|
|
|
dbus-faq.xml \
|
|
|
|
|
dbus-specification.xml \
|
|
|
|
|
dbus-test-plan.xml \
|
|
|
|
|
dbus-tutorial.xml \
|
2015-02-05 12:08:03 +00:00
|
|
|
dbus-api-design.duck \
|
2010-09-09 13:15:57 +01:00
|
|
|
dcop-howto.txt \
|
2016-10-01 21:23:16 +02:00
|
|
|
introspect.xsl
|
2010-09-09 13:15:57 +01:00
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
|
file-boilerplate.c \
|
2011-01-13 17:11:00 +00:00
|
|
|
doxygen_to_devhelp.xsl \
|
2013-02-12 16:01:16 +00:00
|
|
|
$(STATIC_DOCS)
|
2002-11-21 18:54:46 +00:00
|
|
|
|
2011-04-12 12:54:22 +01:00
|
|
|
html_DATA =
|
|
|
|
|
|
2011-09-20 18:44:25 +01:00
|
|
|
dist_html_DATA =
|
|
|
|
|
|
|
|
|
|
# diagram.png/diagram.svg aren't really HTML, but must go in the same
|
|
|
|
|
# directory as the HTML to avoid broken links
|
|
|
|
|
STATIC_HTML = \
|
2011-08-15 10:23:04 +01:00
|
|
|
diagram.png \
|
|
|
|
|
diagram.svg \
|
2011-09-20 18:44:25 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
2015-02-05 12:08:03 +00:00
|
|
|
# Static HTML helper files generated by yelp-build.
|
|
|
|
|
YELP_STATIC_HTML = \
|
|
|
|
|
yelp.js \
|
|
|
|
|
C.css \
|
2018-04-23 17:38:56 +01:00
|
|
|
highlight.pack.js \
|
2015-02-05 12:08:03 +00:00
|
|
|
jquery.js \
|
|
|
|
|
jquery.syntax.js \
|
|
|
|
|
jquery.syntax.brush.html.js \
|
|
|
|
|
jquery.syntax.core.js \
|
|
|
|
|
jquery.syntax.layout.yelp.js \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
2011-09-20 18:44:25 +01:00
|
|
|
dist_html_DATA += $(STATIC_HTML)
|
|
|
|
|
|
2015-02-05 12:08:03 +00:00
|
|
|
# Content HTML files generated by yelp-build.
|
|
|
|
|
YELP_HTML = \
|
|
|
|
|
dbus-api-design.html \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
2013-02-12 16:01:16 +00:00
|
|
|
XMLTO_HTML = \
|
2005-01-23 00:28:41 +00:00
|
|
|
dbus-faq.html \
|
2003-09-30 03:34:00 +00:00
|
|
|
dbus-specification.html \
|
|
|
|
|
dbus-test-plan.html \
|
2013-02-12 16:01:16 +00:00
|
|
|
dbus-tutorial.html \
|
|
|
|
|
$(MAN_HTML_FILES) \
|
|
|
|
|
$(NULL)
|
2003-09-30 03:34:00 +00:00
|
|
|
|
|
|
|
|
if DBUS_XML_DOCS_ENABLED
|
2013-02-12 16:01:16 +00:00
|
|
|
html_DATA += $(XMLTO_HTML)
|
2012-01-08 12:11:11 -05:00
|
|
|
|
2013-02-12 16:01:16 +00:00
|
|
|
%.html: %.xml
|
2020-11-05 21:27:02 +01:00
|
|
|
$(XMLTO) --stringparam generate.consistent.ids=1 html-nochunks $<
|
2003-09-29 02:23:29 +00:00
|
|
|
|
2013-02-12 16:01:16 +00:00
|
|
|
%.1: %.1.xml
|
|
|
|
|
$(XMLTO) man $<
|
2004-03-19 22:36:31 +00:00
|
|
|
endif
|
2003-02-16 23:35:51 +00:00
|
|
|
|
2010-09-08 20:58:05 +01:00
|
|
|
if DBUS_DOXYGEN_DOCS_ENABLED
|
2011-01-13 18:33:54 +00:00
|
|
|
all-local:: doxygen.stamp
|
2010-09-08 20:58:05 +01:00
|
|
|
|
2011-01-13 18:33:54 +00:00
|
|
|
doxygen.stamp: $(wildcard $(top_srcdir)/dbus/*.[ch])
|
2010-09-08 20:58:05 +01:00
|
|
|
$(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile
|
2011-01-13 18:33:54 +00:00
|
|
|
@touch $@
|
2011-01-13 18:37:53 +00:00
|
|
|
|
2011-01-13 18:38:43 +00:00
|
|
|
if DBUS_HAVE_XSLTPROC
|
2018-04-23 11:22:41 +01:00
|
|
|
html_DATA += dbus.devhelp2
|
2011-01-13 18:38:43 +00:00
|
|
|
|
2018-04-23 11:22:41 +01:00
|
|
|
dbus.devhelp2: $(srcdir)/doxygen_to_devhelp.xsl doxygen.stamp
|
2011-01-13 18:38:43 +00:00
|
|
|
$(XSLTPROC) -o $@ $< api/xml/index.xml
|
|
|
|
|
endif
|
|
|
|
|
|
2015-02-05 12:08:03 +00:00
|
|
|
if DBUS_DUCKTYPE_DOCS_ENABLED
|
2018-04-21 19:35:41 +01:00
|
|
|
html_DATA += $(YELP_HTML)
|
2015-02-05 12:08:03 +00:00
|
|
|
|
|
|
|
|
%.page: %.duck
|
|
|
|
|
$(DUCKTYPE) -o $@ $<
|
|
|
|
|
%.html: %.page
|
|
|
|
|
$(YELP_BUILD) html $<
|
|
|
|
|
$(YELP_STATIC_HTML): $(YELP_HTML)
|
|
|
|
|
endif
|
|
|
|
|
|
2011-01-13 18:37:53 +00:00
|
|
|
# this assumes CREATE_SUBDIRS isn't set to YES in Doxyfile
|
|
|
|
|
# (which it isn't currently)
|
|
|
|
|
install-data-local:: doxygen.stamp
|
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(apidir)
|
|
|
|
|
$(INSTALL_DATA) api/html/* $(DESTDIR)$(apidir)
|
2020-04-28 19:03:59 +02:00
|
|
|
if DBUS_QTHELP_DOCS_ENABLED
|
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(qchdir)
|
|
|
|
|
$(INSTALL_DATA) $(DOXYGEN_QCH_FILE) $(DESTDIR)$(qchdir)
|
|
|
|
|
endif
|
2018-04-21 19:35:41 +01:00
|
|
|
if DBUS_DUCKTYPE_DOCS_ENABLED
|
|
|
|
|
$(AM_V_at)for x in $(YELP_STATIC_HTML); do \
|
|
|
|
|
if test -e "$$x"; then \
|
|
|
|
|
$(INSTALL_DATA) "$$x" $(DESTDIR)$(htmldir); \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
|
|
|
|
endif
|
2011-03-10 18:42:12 +00:00
|
|
|
|
|
|
|
|
uninstall-local::
|
|
|
|
|
rm -f $(DESTDIR)$(apidir)/*.html
|
|
|
|
|
rm -f $(DESTDIR)$(apidir)/*.png
|
|
|
|
|
rm -f $(DESTDIR)$(apidir)/*.css
|
2012-06-05 13:29:11 +01:00
|
|
|
rm -f $(DESTDIR)$(apidir)/*.js
|
2018-04-27 18:18:07 +01:00
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.css
|
|
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.js
|
2011-04-12 13:17:30 +01:00
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.html
|
|
|
|
|
rm -f $(DESTDIR)$(docdir)/*.txt
|
2011-08-15 10:23:04 +01:00
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.png
|
|
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.svg
|
2020-04-28 19:03:59 +02:00
|
|
|
rm -f $(DESTDIR)$(apidir)/*.qhp
|
|
|
|
|
rm -f $(DESTDIR)$(qchdir)/dbus-*.qch
|
2011-03-10 18:42:12 +00:00
|
|
|
rmdir --ignore-fail-on-non-empty $(DESTDIR)$(apidir) || \
|
|
|
|
|
rmdir $(DESTDIR)$(apidir)
|
2010-09-08 20:58:05 +01:00
|
|
|
endif
|
|
|
|
|
|
2010-09-09 13:15:57 +01:00
|
|
|
if DBUS_CAN_UPLOAD_DOCS
|
|
|
|
|
BONUS_FILES = \
|
|
|
|
|
$(top_srcdir)/README \
|
2018-10-16 15:02:29 +01:00
|
|
|
$(top_srcdir)/CONTRIBUTING.md \
|
2010-09-09 13:15:57 +01:00
|
|
|
$(top_srcdir)/AUTHORS \
|
|
|
|
|
$(top_srcdir)/NEWS \
|
|
|
|
|
$(top_srcdir)/COPYING \
|
2018-12-04 11:18:39 +00:00
|
|
|
$(NULL)
|
2010-09-09 13:15:57 +01:00
|
|
|
|
2018-04-21 19:35:41 +01:00
|
|
|
dbus-docs: $(STATIC_DOCS) $(dist_dtd_DATA) $(MAN_XML_FILES) $(dist_doc_DATA) $(dist_html_DATA) $(MAN_HTML_FILES) $(BONUS_FILES) doxygen.stamp $(XMLTO_HTML) $(YELP_HTML)
|
2011-09-20 18:44:25 +01:00
|
|
|
$(AM_V_at)rm -rf $@ $@.tmp
|
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $@.tmp/api
|
|
|
|
|
$(AM_V_at)cd $(srcdir) && cp $(STATIC_DOCS) @abs_builddir@/$@.tmp
|
2016-10-01 21:23:16 +02:00
|
|
|
$(AM_V_at)cd $(srcdir) && cp $(dist_dtd_DATA) @abs_builddir@/$@.tmp
|
2011-09-20 18:44:25 +01:00
|
|
|
$(AM_V_at)cd $(srcdir) && cp $(dist_doc_DATA) @abs_builddir@/$@.tmp
|
|
|
|
|
$(AM_V_at)cd $(srcdir) && cp $(STATIC_HTML) @abs_builddir@/$@.tmp
|
2013-02-12 16:01:16 +00:00
|
|
|
$(AM_V_at)cp $(XMLTO_HTML) @abs_builddir@/$@.tmp
|
2015-02-05 12:08:03 +00:00
|
|
|
$(AM_V_at)cp $(YELP_HTML) @abs_builddir@/$@.tmp
|
2018-04-21 19:35:41 +01:00
|
|
|
$(AM_V_at)for x in $(YELP_STATIC_HTML); do \
|
|
|
|
|
if test -e "$$x"; then \
|
|
|
|
|
cp "$$x" @abs_builddir@/$@.tmp; \
|
|
|
|
|
fi; \
|
|
|
|
|
done
|
2011-09-20 18:44:25 +01:00
|
|
|
$(AM_V_at)cp $(MAN_HTML_FILES) @abs_builddir@/$@.tmp
|
2013-02-12 16:01:16 +00:00
|
|
|
$(AM_V_at)cp $(MAN_XML_FILES) @abs_builddir@/$@.tmp
|
2011-09-20 18:44:25 +01:00
|
|
|
$(AM_V_at)cp $(BONUS_FILES) @abs_builddir@/$@.tmp
|
|
|
|
|
$(AM_V_at)cp -r api/html @abs_builddir@/$@.tmp/api
|
|
|
|
|
$(AM_V_at)mv $@.tmp $@
|
2010-09-09 13:15:57 +01:00
|
|
|
|
2018-08-22 11:43:21 +00:00
|
|
|
dbus-docs.tar.xz: dbus-docs
|
2018-12-04 11:17:05 +00:00
|
|
|
$(AM_V_GEN)tar --xz -c -f $@ $<
|
2010-09-09 13:15:57 +01:00
|
|
|
|
|
|
|
|
DOC_SERVER = dbus.freedesktop.org
|
|
|
|
|
DOC_WWW_DIR = /srv/dbus.freedesktop.org/www
|
|
|
|
|
|
|
|
|
|
SPECIFICATION_SERVER = specifications.freedesktop.org
|
|
|
|
|
SPECIFICATION_PATH = /srv/specifications.freedesktop.org/www/dbus/1.0
|
|
|
|
|
|
2018-08-22 11:43:21 +00:00
|
|
|
maintainer-upload-docs: dbus-docs.tar.xz dbus-docs
|
|
|
|
|
scp dbus-docs.tar.xz $(DOC_SERVER):$(DOC_WWW_DIR)/
|
2011-04-11 12:04:19 +01:00
|
|
|
rsync -rpvzP --chmod=Dg+s,ug+rwX,o=rX \
|
2010-09-09 13:15:57 +01:00
|
|
|
dbus-docs/ $(DOC_SERVER):$(DOC_WWW_DIR)/doc/
|
2016-10-01 21:23:16 +02:00
|
|
|
cd $(srcdir) && scp -p $(dist_dtd_DATA) $(SPECIFICATION_SERVER):$(SPECIFICATION_PATH)/
|
2010-09-09 13:15:57 +01:00
|
|
|
else
|
|
|
|
|
maintainer-upload-docs:
|
|
|
|
|
@echo "Can't upload documentation! Re-run configure with"
|
2015-02-05 12:08:03 +00:00
|
|
|
@echo " --enable-doxygen-docs --enable-xml-docs --enable-ducktype-docs"
|
2010-09-09 13:15:57 +01:00
|
|
|
@false
|
|
|
|
|
endif
|
|
|
|
|
|
2013-02-12 16:01:16 +00:00
|
|
|
CLEANFILES = \
|
|
|
|
|
$(man1_MANS) \
|
|
|
|
|
$(MAN_XML_FILES) \
|
|
|
|
|
$(XMLTO_HTML) \
|
2015-02-05 12:08:03 +00:00
|
|
|
$(YELP_HTML) \
|
|
|
|
|
$(YELP_STATIC_HTML) \
|
2013-02-12 16:01:16 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
2010-09-08 20:58:05 +01:00
|
|
|
clean-local:
|
2011-04-12 12:54:22 +01:00
|
|
|
rm -f $(html_DATA)
|
2010-09-08 20:58:05 +01:00
|
|
|
rm -rf api
|
2011-09-20 18:44:25 +01:00
|
|
|
rm -rf dbus-docs dbus-docs.tmp
|
2010-09-08 22:38:22 +01:00
|
|
|
rm -f *.1.html
|
2011-03-10 18:42:12 +00:00
|
|
|
rm -f doxygen.stamp
|