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 \
53 dbus-specification.html \
57 if DBUS_XML_DOCS_ENABLED
58 all-local:: $(HTML_FILES)
60 EXTRA_DIST += $(HTML_FILES)
62 dbus-specification.html: dbus-specification.xml
63 $(XMLTO) html-nochunks $<
65 dbus-test-plan.html: dbus-test-plan.xml
66 $(XMLTO) html-nochunks $<
68 dbus-tutorial.html: dbus-tutorial.xml
69 $(XMLTO) html-nochunks $<
71 dbus-faq.html: dbus-faq.xml
72 $(XMLTO) html-nochunks $<
76 if DBUS_DOXYGEN_DOCS_ENABLED
77 all-local:: doxygen.stamp
79 doxygen.stamp: $(wildcard $(top_srcdir)/dbus/*.[ch])
80 $(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile
84 html_DATA += dbus.devhelp
86 dbus.devhelp: $(srcdir)/doxygen_to_devhelp.xsl doxygen.stamp
87 $(XSLTPROC) -o $@ $< api/xml/index.xml
90 # this assumes CREATE_SUBDIRS isn't set to YES in Doxyfile
91 # (which it isn't currently)
92 install-data-local:: doxygen.stamp
93 $(MKDIR_P) $(DESTDIR)$(apidir)
94 $(INSTALL_DATA) api/html/* $(DESTDIR)$(apidir)
97 rm -f $(DESTDIR)$(apidir)/*.html
98 rm -f $(DESTDIR)$(apidir)/*.png
99 rm -f $(DESTDIR)$(apidir)/*.css
100 rmdir --ignore-fail-on-non-empty $(DESTDIR)$(apidir) || \
101 rmdir $(DESTDIR)$(apidir)
104 if DBUS_HAVE_MAN2HTML
105 all-local:: $(MAN_HTML_FILES)
108 $(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ )
111 if DBUS_CAN_UPLOAD_DOCS
113 $(top_srcdir)/README \
114 $(top_srcdir)/HACKING \
115 $(top_srcdir)/AUTHORS \
117 $(top_srcdir)/COPYING \
118 $(top_srcdir)/ChangeLog
120 dbus-docs: $(STATIC_DOCS) $(HTML_FILES) $(MAN_HTML_FILES) $(BONUS_FILES) doxygen.stamp
122 $(AM_V_GEN)$(MKDIR_P) $@/api
123 $(AM_V_at)cp $(STATIC_DOCS) $@
124 $(AM_V_at)cp $(HTML_FILES) $@
125 $(AM_V_at)cp $(MAN_HTML_FILES) $@
126 $(AM_V_at)cp $(BONUS_FILES) $@
127 $(AM_V_at)cp -r api/html $@/api
129 dbus-docs.tar.gz: dbus-docs
130 $(AM_V_GEN)tar czf $@ $<
132 DOC_SERVER = dbus.freedesktop.org
133 DOC_WWW_DIR = /srv/dbus.freedesktop.org/www
135 SPECIFICATION_SERVER = specifications.freedesktop.org
136 SPECIFICATION_PATH = /srv/specifications.freedesktop.org/www/dbus/1.0
138 maintainer-upload-docs: dbus-docs.tar.gz dbus-docs
139 scp dbus-docs.tar.gz $(DOC_SERVER):$(DOC_WWW_DIR)
140 rsync -rpvzP --chmod=Dg+s,ug+rwX,o=rX \
141 dbus-docs/ $(DOC_SERVER):$(DOC_WWW_DIR)/doc/
142 scp -p $(DTDS) $(SPECIFICATION_SERVER):$(SPECIFICATION_PATH)
144 maintainer-upload-docs:
145 @echo "Can't upload documentation! Re-run configure with"
146 @echo " --enable-doxygen-docs --enable-xml-docs"
147 @echo "and ensure that man2html is installed."
158 maintainer-clean-local: