Ruud van Silfhout writes:
Long time ago I tried something similar. What I remember from this
is that I couldn't get it to work. It work only in case the files
included
are in the same directory
Probably the documentation on lilypond-book is lacking (can somebody
please check and or fix?), but the lilypond documentation itself has
always been built using include directives to lilypond-book.
If you have v2.2 or later, use:
lilypond-book --process='lilypond-bin -I include-dir1 -I
include-dir2'
if you have an earlier version, do:
lilypond-book -I include-dir1 -I include-dir2
See lilypond-book --help for more information.
Of course, the first file name found in the path that matches is used,
so you still need unique .ly file names for snippets included in one
book.
You'll also want to check-out the --output option, and possibly even
use LilyPond's pre-cooked makefile, installed as something like:
/usr/share/lilypond/2.2.0/make/ly.make
Hope this helps.
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music
typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org