From 74dcd775da7b6f3843ea5fa5eaada75d00ad7658 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 7 Mar 2004 13:34:44 +0000 Subject: [PATCH] (local-install-info): Issue warning (for packager, ie, if not installing in /usr or /usr/local). --- ChangeLog | 3 +++ Documentation/user/GNUmakefile | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 47518252d1..223989c573 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-03-07 Jan Nieuwenhuizen + * 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: diff --git a/Documentation/user/GNUmakefile b/Documentation/user/GNUmakefile index e0cff00614..832f2931af 100644 --- a/Documentation/user/GNUmakefile +++ b/Documentation/user/GNUmakefile @@ -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 -- 2.39.2