26.10.2014 Views

Section “Troubleshooting” in Application Usage - LilyPond

Section “Troubleshooting” in Application Usage - LilyPond

Section “Troubleshooting” in Application Usage - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5: Suggestions for writ<strong>in</strong>g files 51<br />

# Type `make score' to generate the full score of all four<br />

# movements as one file.<br />

.PHONY: score<br />

score: $(piece).pdf<br />

# Type `make parts' to generate all parts.<br />

# Type `make foo.pdf' to generate the part for <strong>in</strong>strument `foo'.<br />

# Example: `make symphony-cello.pdf'.<br />

.PHONY: parts<br />

parts: $(piece)-cello.pdf \<br />

$(piece)-viol<strong>in</strong>One.pdf \<br />

$(piece)-viol<strong>in</strong>Two.pdf \<br />

$(piece)-viola.pdf \<br />

$(piece)-oboes.pdf \<br />

$(piece)-horn.pdf<br />

# Type `make movements' to generate files for the<br />

# four movements separately.<br />

.PHONY: movements<br />

movements: $(piece)I.pdf \<br />

$(piece)II.pdf \<br />

$(piece)III.pdf \<br />

$(piece)IV.pdf<br />

all: score parts movements<br />

archive:<br />

tar -cvvf stamitz.tar \ # this l<strong>in</strong>e beg<strong>in</strong>s with a tab<br />

--exclude=*pdf --exclude=*~ \<br />

--exclude=*midi --exclude=*.tar \<br />

../Stamitz/*<br />

There are special complications on the W<strong>in</strong>dows platform. After download<strong>in</strong>g and <strong>in</strong>stall<strong>in</strong>g<br />

GNU Make for W<strong>in</strong>dows, you must set the correct path <strong>in</strong> the system’s environment variables<br />

so that the DOS shell can f<strong>in</strong>d the Make program. To do this, right-click on "My Computer,"<br />

then choose Properties and Advanced. Click Environment Variables, and then <strong>in</strong> the System<br />

Variables pane, highlight Path, click edit, and add the path to the GNU Make executable file,<br />

which will look someth<strong>in</strong>g like this:<br />

C:\Program Files\GnuW<strong>in</strong>32\b<strong>in</strong><br />

The makefile itself has to be altered to handle different shell commands and to deal with<br />

spaces that are present <strong>in</strong> some default system directories. The archive target is elim<strong>in</strong>ated<br />

s<strong>in</strong>ce W<strong>in</strong>dows does not have the tar command, and W<strong>in</strong>dows also has a different default<br />

extension for midi files.<br />

## WINDOWS VERSION<br />

##<br />

piece = symphony<br />

LILY_CMD = lilypond -ddelete-<strong>in</strong>termediate-files \<br />

-dno-po<strong>in</strong>t-and-click \<br />

-djob-count=$(NUMBER_OF_PROCESSORS)<br />

#get the 8.3 name of CURDIR (workaround for spaces <strong>in</strong> PATH)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!