3 # automake normally assumes that man pages are generated files;
4 # these ones aren't, so we need the dist_ prefix to say that they're
5 # their own source code
7 dbus-cleanup-sockets.1 \
13 # on the other hand, this one is generated
17 MAN_IN_FILES = dbus-daemon.1.in
20 dbus-cleanup-sockets.1.html \
35 dbus-specification.xml \
40 system-activation.txt \
45 doxygen_to_devhelp.xsl \
51 dbus-specification.html \
55 if DBUS_XML_DOCS_ENABLED
56 all-local:: $(HTML_FILES)
58 EXTRA_DIST += $(HTML_FILES)
60 dbus-specification.html: dbus-specification.xml
61 $(XMLTO) html-nochunks $<
63 dbus-test-plan.html: dbus-test-plan.xml
64 $(XMLTO) html-nochunks $<
66 dbus-tutorial.html: dbus-tutorial.xml
67 $(XMLTO) html-nochunks $<
69 dbus-faq.html: dbus-faq.xml
70 $(XMLTO) html-nochunks $<
74 if DBUS_DOXYGEN_DOCS_ENABLED
75 all-local:: doxygen.stamp
77 doxygen.stamp: $(wildcard $(top_srcdir)/dbus/*.[ch])
78 $(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile
82 api_DATA = dbus.devhelp
84 dbus.devhelp: $(srcdir)/doxygen_to_devhelp.xsl doxygen.stamp
85 $(XSLTPROC) -o $@ $< api/xml/index.xml
88 # this assumes CREATE_SUBDIRS isn't set to YES in Doxyfile
89 # (which it isn't currently)
90 install-data-local:: doxygen.stamp
91 $(MKDIR_P) $(DESTDIR)$(apidir)
92 $(INSTALL_DATA) api/html/* $(DESTDIR)$(apidir)
95 rm -f $(DESTDIR)$(apidir)/*.html
96 rm -f $(DESTDIR)$(apidir)/*.png
97 rm -f $(DESTDIR)$(apidir)/*.css
98 rmdir --ignore-fail-on-non-empty $(DESTDIR)$(apidir) || \
99 rmdir $(DESTDIR)$(apidir)
102 if DBUS_HAVE_MAN2HTML
103 all-local:: $(MAN_HTML_FILES)
106 $(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ )
109 if DBUS_CAN_UPLOAD_DOCS
111 $(top_srcdir)/README \
112 $(top_srcdir)/HACKING \
113 $(top_srcdir)/AUTHORS \
115 $(top_srcdir)/COPYING \
116 $(top_srcdir)/ChangeLog
118 dbus-docs: $(STATIC_DOCS) $(HTML_FILES) $(MAN_HTML_FILES) $(BONUS_FILES) doxygen.stamp
120 $(AM_V_GEN)$(MKDIR_P) $@/api
121 $(AM_V_at)cp $(STATIC_DOCS) $@
122 $(AM_V_at)cp $(HTML_FILES) $@
123 $(AM_V_at)cp $(MAN_HTML_FILES) $@
124 $(AM_V_at)cp $(BONUS_FILES) $@
125 $(AM_V_at)cp -r api/html $@/api
127 dbus-docs.tar.gz: dbus-docs
128 $(AM_V_GEN)tar czf $@ $<
130 DOC_SERVER = dbus.freedesktop.org
131 DOC_WWW_DIR = /srv/dbus.freedesktop.org/www
133 SPECIFICATION_SERVER = specifications.freedesktop.org
134 SPECIFICATION_PATH = /srv/specifications.freedesktop.org/www/dbus/1.0
136 maintainer-upload-docs: dbus-docs.tar.gz dbus-docs
137 scp dbus-docs.tar.gz $(DOC_SERVER):$(DOC_WWW_DIR)
138 rsync -rvzP --chmod=Dg+s,ug+rwX,o=rX \
139 dbus-docs/ $(DOC_SERVER):$(DOC_WWW_DIR)/doc/
140 scp -p $(DTDS) $(SPECIFICATION_SERVER):$(SPECIFICATION_PATH)
142 maintainer-upload-docs:
143 @echo "Can't upload documentation! Re-run configure with"
144 @echo " --enable-doxygen-docs --enable-xml-docs"
145 @echo "and ensure that man2html is installed."
155 maintainer-clean-local: