aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès2012-05-26 16:36:56 +0200
committerLudovic Courtès2012-05-29 00:08:12 +0200
commit43bce37eedfa8b25b5125dac492748d6eb874d57 (patch)
tree24d8ff609c448b9342786eb01ff315ca736e0c5a
parent2306ab7701aaa26e13423bbd6744bd6c487c598b (diff)
downloadskribilo-43bce37eedfa8b25b5125dac492748d6eb874d57.tar.gz
skribilo-43bce37eedfa8b25b5125dac492748d6eb874d57.tar.lz
skribilo-43bce37eedfa8b25b5125dac492748d6eb874d57.zip
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).
-rw-r--r--configure.ac2
-rw-r--r--doc/user/Makefile.am5
2 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0585bb0..4975b0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,8 @@ AC_ARG_WITH([guilemoduledir],
esac],
[guilemoduledir=""])
+AC_PROG_LN_S
+AC_PROG_MKDIR_P
# Look for Guile.
GUILE_PROGS
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 \