lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOCS: revising LM "Score and Parts"


From: Jonathan Kulp
Subject: Re: DOCS: revising LM "Score and Parts"
Date: Mon, 25 May 2009 21:13:33 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Wow! Thanks so much, Henning! This is great. We'll put it in the docs alongside the one for Linux/MacOSX. I had to comment out one more thing before it would run properly, though--the "-djob-count" option, something we put in on the Linux version to take advantage of dual processors. It choked on that saying "unbound variable 'primitive-fork'". This could be because I'm running on a virtual machine, though. Did it work properly for you with the multiple jobs option?

Again, thank you very much for working on this.

Jon

Henning Plumeyer wrote:
Am 25.05.2009, 20:19 Uhr, schrieb Jonathan Kulp <address@hidden>:

I'm copying the whole Makefile below in case anyone would like to try it on Windows. The tarball of the Stamitz symphony source files is available here:

http://music2.louisiana.edu/Gratis/

Jon,
here is a changed version of your makefile, which works under Windows XP.
Changes:
- I use the environment variable "NUMBER_OF_PROCESSORS".
- .mid instead of .midi
- the pattern rule to create PDF and MID(I) files
- tar part commented out, cause on Windows you don't have tar

It works only if no blanks are in the path to the working directory.

If there is at least one blank (on a german Windows the home directory
is called "c:\Dokumente und Einstellungen\<username>") searching does
not work. With  make -r -R -p I see the last ends of the parts of
VPATH.
I have tried double quotes around the VPATH parts, it didn't help.
Neither did using semi-colons.

Henning

########

# the name stem of the output files
piece = stamitz
# The command to run lilypond
LILY_CMD = lilypond -ddelete-intermediate-files \
-dno-point-and-click -djob-count=$(NUMBER_OF_PROCESSORS)

# The suffixes used in this Makefile.
.SUFFIXES: .ly .ily .pdf .mid

# Input and output files are searched in the directories listened in
# the VPATH variable.  All of them are subdirectories of the current
# directory (given by the GNU make variable `CURDIR').
VPATH = \
  $(CURDIR)/Scores \
  $(CURDIR)/PDF \
  $(CURDIR)/Parts \
  $(CURDIR)/Notes

# The pattern rule to create PDF and MIDI files from a LY input file.
# The .pdf output files are created in the `PDF' subdirectory, and the
# .midi files are put into the `MIDI' subdirectory.
%.pdf %.midi: %.ly
    $(LILY_CMD) $<
    if exist "$*.pdf"  move /Y "$*.pdf"  PDF/
    if exist "$*.mid" move /Y "$*.mid" MIDI/

notes = \
  cello.ily \
  figures.ily \
  horn.ily \
  oboe.ily \
  trioString.ily \
  viola.ily \
  violinOne.ily \
  violinTwo.ily

# The dependencies of the movements.
$(piece)I.pdf: $(piece)I.ly $(notes)
$(piece)II.pdf: $(piece)II.ly $(notes)
$(piece)III.pdf: $(piece)III.ly $(notes)
$(piece)IV.pdf: $(piece)IV.ly $(notes)

# The dependencies of the full score.
$(piece).pdf: $(piece).ly $(notes)

# The dependencies of the parts.
$(piece)-cello.pdf: $(piece)-cello.ly cello.ily \
                    figures.ily \
                    trioString.ily
$(piece)-horn.pdf: $(piece)-horn.ly horn.ily
$(piece)-oboes.pdf: $(piece)-oboes.ly oboe.ily
$(piece)-viola.pdf: $(piece)-viola.ly viola.ily
$(piece)-violinOne.pdf: $(piece)-violinOne.ly violinOne.ily
$(piece)-violinTwo.pdf: $(piece)-violinTwo.ly violinTwo.ily

# Say `make score' to generate the full score of all four
# movements as one file.
.PHONY: score
score: $(piece).pdf

# Say `make parts' to generate all parts.
# Say `make foo.pdf' to generate the part for instrument `foo'.
# Example: `make cello.pdf'.
.PHONY: parts
parts: $(piece)-cello.pdf \
       $(piece)-violinOne.pdf \
       $(piece)-violinTwo.pdf \
       $(piece)-viola.pdf \
       $(piece)-oboes.pdf \
       $(piece)-horn.pdf

# Say `make movements' to generate files for the
# four movements separately.
.PHONY: movements
movements: $(piece)I.pdf \
           $(piece)II.pdf \
           $(piece)III.pdf \
           $(piece)IV.pdf

all: score parts movements

#archive:
#    tar -cvvf stamitz.tar \
#    --exclude=*pdf --exclude=*~ \
#  --exclude=*midi --exclude=*.tar \
#    ../Stamitz/*


--
Jonathan Kulp
http://www.jonathankulp.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]