Install diagrams in htmldir
authorChris Mayo <aklhfex gmail com>
Mon, 15 Aug 2011 09:23:04 +0000 (10:23 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Aug 2011 09:23:04 +0000 (10:23 +0100)
diagram.png and diagram.svg are linked from dbus-tutorial.html but recent
changes to doc/Makefile.am mean that if htmldir is set with configure they are
installed such that the relative link from dbus-tutorial.html does not work.

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
doc/Makefile.am

index e4ab5fb..b36777c 100644 (file)
@@ -28,10 +28,7 @@ DTDS = \
        busconfig.dtd \
        introspect.dtd
 
-dist_doc_DATA = \
-       diagram.png \
-       diagram.svg \
-       system-activation.txt
+dist_doc_DATA = system-activation.txt
 
 STATIC_DOCS = \
        dbus-faq.xml \
@@ -51,7 +48,10 @@ EXTRA_DIST = \
 html_DATA =
 
 # we distribute these in the tarball so users don't necessarily need xmlto
-dist_html_DATA = $(XMLTO_OUTPUT)
+dist_html_DATA = \
+       diagram.png \
+       diagram.svg \
+       $(XMLTO_OUTPUT)
 
 XMLTO_OUTPUT=                                  \
        dbus-faq.html                           \
@@ -99,8 +99,8 @@ uninstall-local::
        rm -f $(DESTDIR)$(apidir)/*.css
        rm -f $(DESTDIR)$(htmldir)/*.html
        rm -f $(DESTDIR)$(docdir)/*.txt
-       rm -f $(DESTDIR)$(docdir)/*.png
-       rm -f $(DESTDIR)$(docdir)/*.svg
+       rm -f $(DESTDIR)$(htmldir)/*.png
+       rm -f $(DESTDIR)$(htmldir)/*.svg
        rmdir --ignore-fail-on-non-empty $(DESTDIR)$(apidir) || \
                rmdir $(DESTDIR)$(apidir)
 endif