]> git.donarmstrong.com Git - lilypond.git/commitdiff
(local-install-info): Issue
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 7 Mar 2004 13:34:44 +0000 (13:34 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 7 Mar 2004 13:34:44 +0000 (13:34 +0000)
warning (for packager, ie, if not installing in /usr or /usr/local).

ChangeLog
Documentation/user/GNUmakefile

index 47518252d192f8f5fab645ab3e510bd3f1d265ce..223989c5733e25b3ed6761875651d76a6d1306b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-03-07  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * Documentation/user/GNUmakefile (local-install-info): Issue
+       warning (for packager, ie, if not installing in /usr or /usr/local).
+
        * lily/stencil-scheme.cc: 
        * lily/staff-symbol-referencer.cc: 
        * lily/script-column.cc: 
index e0cff00614c63a7979523977678fa1266976edd2..832f2931af85e87935dbbf6af21feaf5e402f7ea 100644 (file)
@@ -45,11 +45,20 @@ ifeq ($(out),www)
 #info: $(INFO_FILES)
     # Cancel the special, non-image info generation rule that skips images:
     $(outdir)/%.info: $(outdir)/%.nexi
-local-install-info: install-info info
+local-install-info: #install-info info
        -$(INSTALL) -d $(DESTDIR)$(package_infodir)
-
-## ugh: can not have absolute symlinks because of buildroot.
-#      (cd $(package_infodir) && ln -sf $(local_package_docdir)/Documentation/user/out-www/*png .)
+ifneq ($(patsubst %/local,%,$(DESTDIR)$(prefix)),/usr)
+## Can not have absolute symlinks because some binary packages build schemes
+## install files in nonstandard root.  Best we can do is to notify the
+## builder or packager.
+       @echo "***"
+       @echo "For images in the INFO docs to work, do: "
+       @echo "    (cd $(package_infodir) && ln -sf ../../doc/lilypond/$(TOPLEVEL_VERSION)/Documentation/user/out-www/*png .)"
+       @echo "or add something like that to the postinstall script."
+       @echo "***"
+else
+       @echo "    (cd $(package_infodir) && ln -sf $(local_package_docdir)/Documentation/user/out-www/*png .)"
+endif
 
 local-uninstall-WWW:
        rm -f $(package_infodir)/*.png