@echo " (cd $(package_infodir) && ln -sf ../../doc/lilypond/Documentation/user/*png .)"
@echo "or add something like that to the postinstall script."
@echo
-else
+else # installing directly into standard /usr/...
-$(INSTALL) -d $(DESTDIR)$(package_infodir)
-install-info --remove --info-dir=$(infodir) $(outdir)/lilypond.info
-install-info --remove --info-dir=$(infodir) $(outdir)/lilypond-program.info
-install-info --remove --info-dir=$(infodir) $(outdir)/lilypond-learning.info
install-info --info-dir=$(infodir) $(outdir)/lilypond.info
(cd $(package_infodir) && ln -sf $(webdir)/Documentation/user/*png .)
-endif
+endif # installing directly into standard /usr/...
local-uninstall-WWW:
rm -f $(package_infodir)/*.png
-else
+else # out!=www
# Cancel the default info generation rule that generates images:
$(outdir)/%.info: # $(outdir)/%.texi
@echo
@echo "and read the extra instructions."
@echo
-else
+else # installing directly into standard /usr/...
-$(INSTALL) -d $(DESTDIR)$(package_infodir)
-install-info --remove --info-dir=$(infodir) $(outdir)/lilypond.info
-install-info --remove --info-dir=$(infodir) $(outdir)/lilypond-program.info
@echo
@echo " make out=www install-info "
@echo
-endif
+endif # installing into standard /usr/* root# installing into /usr/...
-
-endif
+endif # out!=www
# All web targets, except info image symlinks and info docs are
# installed in non-recursing target from TOP-SRC-DIR
$(MAKEINFO) -I$(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split -D bigpage --no-headers $<
-
-
#
# The split internals reference
#
LINKED_PNGS = henle-flat-gray.png baer-flat-gray.png lily-flat-bw.png
-# makeinfo is broken, it MUST have PNGs in output dir
+# makeinfo MUST have PNGs in cwd for info images to work
# symlinking PNGs...
# lilypond-book -I flag seems broken too, and texi2pdf -I flag confuses
# pdfetex with .aux and other files from English manual
.SUFFIXES: .html .info .texi .texinfo
$(outdir)/%.info: $(outdir)/%.texi
- $(MAKEINFO) -I $(outdir) --output=$@ $<
+# makeinfo MUST have PNGs in cwd for info images to work
+ cd $(outdir) && $(MAKEINFO) -I$(srcdir) --output=$(@F) $(<F)
$(outdir)/%-big-page.html: $(outdir)/%.texi
$(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split -D bigpage --no-headers $<