[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DOCS: revising LM "Score and Parts"
From: |
Henning Plumeyer |
Subject: |
Re: DOCS: revising LM "Score and Parts" |
Date: |
Mon, 25 May 2009 00:21:57 +0200 |
User-agent: |
Opera Mail/9.64 (Win32) |
Am 23.05.2009, 04:41 Uhr, schrieb Jonathan Kulp <address@hidden>:
I've made some progress. When I try to run "make score" on Windows XP,
I get the following message:
make: *** No rule to make target `stamitz.ly', needed by
`stamitz.pdf'. Stop.
I get no such message when I run it on Linux. Right now the target
"score" is defined like this:
# The dependencies of the full score.
$(piece).pdf: $(piece).ly $(notes)
.PHONY: score
score: $(piece).pdf
At the top of the makefile is the pattern rule:
# 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 test -f "$*.pdf"; then \
mv "$*.pdf" PDF/; \
fi; \
if test -f "$*.midi"; then \
mv "$*.midi" MIDI/; \
fi
Now, the full score compiles if I change the score target to this:
score:
$(LILY_CMD) Scores/$(piece).ly
So it looks like the Windows environment doesn't know how to deal with
the pattern rule defined at the top of the Makefile.
Maybe I can help a bit, allthough I don't know make, but I am familiar with
windows and it's command line.
I've just read a little bit of the helpfile of make. As far as I understand
in the block below the line
%.pdf %.midi: %.ly
are commands to execute. So they have to be translated to the Windows
batch language.
I don't know what
$(LILY_CMD) $<; \
means, but the two if statements seem to check if there are any pdf or
midi files around and then move them to their directories.
On Windows this can be achieved as follows:
if exist *.pdf move "*.pdf" PDF/
if exist *.midi move "*.pdf" MIDI/
BTW, Windows can handle paths with / as well as with \.
Henning
- Re: DOCS: revising LM "Score and Parts", (continued)
- Re: DOCS: revising LM "Score and Parts", Carl D. Sorensen, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Carl D. Sorensen, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Carl D. Sorensen, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Carl D. Sorensen, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/22
- Re: DOCS: revising LM "Score and Parts", Ian Hulin, 2009/05/23
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/23
- Re: DOCS: revising LM "Score and Parts",
Henning Plumeyer <=
- Re: DOCS: revising LM "Score and Parts", Henning Plumeyer, 2009/05/24
- Re: DOCS: revising LM "Score and Parts", Werner LEMBERG, 2009/05/24
- Re: DOCS: revising LM "Score and Parts", Werner LEMBERG, 2009/05/24
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/25
- Re: DOCS: revising LM "Score and Parts", Henning Plumeyer, 2009/05/25
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/25
- Re: DOCS: revising LM "Score and Parts", Werner LEMBERG, 2009/05/26
- Re: DOCS: revising LM "Score and Parts", Jonathan Kulp, 2009/05/26
- Re: DOCS: revising LM "Score and Parts", Werner LEMBERG, 2009/05/26
- Re: DOCS: revising LM "Score and Parts", Henning Plumeyer, 2009/05/26