From 43bce37eedfa8b25b5125dac492748d6eb874d57 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 26 May 2012 16:36:56 +0200 Subject: doc: Install images alongside the Info manual. * configure.ac: Invoke `AC_PROG_LN_S' and `AC_PROG_MKDIR_P'. * doc/user/Makefile.am (install-data-hook): Create symlinks to the PNG files from $(infodir). --- doc/user/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/user') diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am index a2e6eab..4d1f04c 100644 --- a/doc/user/Makefile.am +++ b/doc/user/Makefile.am @@ -122,8 +122,13 @@ endif # Install/uninstall files not listed in `html_DATA'. +# Make the images available alongside the Info manual. install-data-hook: $(INSTALL_DATA) user-*.html *.png "$(DESTDIR)$(htmldir)" + $(MKDIR_P) "$(DESTDIR)$(infodir)" + for i in "$(DESTDIR)$(htmldir)/"*.png; do \ + (cd "$(DESTDIR)$(infodir)"; $(LN_S) "$$i"); \ + done uninstall-local: -rm -rf "$(DESTDIR)$(htmldir)"/user-*.html \ -- cgit v1.2.3