[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: makefile problems
From:       Craig Dabelstein <craig.dabelstein () gmail ! com>
Date:       2014-12-31 14:35:33
Message-ID: CAMhPZ6AHmbiZafhD9J7w3fd865ZfodWg-XuxBHuu=PiGNUsOng () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Jacques,

I've attached my makefile. You can compare it to pp. 50-52 of the Lilypond
"Usage" manual, which is what I adapted it from. Any advice would be much
appreciated.

Craig


On Thu Jan 01 2015 at 12:29:28 AM Jacques Menu <imj-muzhic@bluewin.ch>
wrote:

> Hello Craig,
>
> Tabs play an important role in makefiles, and the bullets on the first two
> lines are suspect to me. Maybe an effect of copying into your E-Mail
> message.
>
> Can you supply as attachments the original and modified makefiles? The
> result of  « diff originalOne yours  » will be instructive.
>
> JM
>
> Le 31 déc. 2014 à 00:27, Craig Dabelstein <craig.dabelstein@gmail.com> a
> écrit :
>
> Hi all,
>
> Does anyone have experience with using makefiles?
>
> I've adapted the example from the usage documentation but I keep getting
> errors, such as *** No rule to make target `score'
>
> Any help or tips would be greatly appreciated.
>
> Craig
>
>
>
>    - piece = symphony2
>    - CPU_CORES=`cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//`
>
> LILY_CMD = lilypond -ddelete-intermediate-files \
>
>                       -dno-point-and-click -djob-count=$(CPU_CORES)
>
> .SUFFIXES: .ly .ily .pdf .midi
>
> # Input and output files are searched in the directories listed in
>
> # the VPATH variable.  All of them are subdirectories of the current
>
> # directory (given by the GNU make variable `CURDIR').
>
> #CURDIR = $(shell pwd)
>
> 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 put into the `PDF' subdirectory, and the
>
> # .midi files go 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
>
>
> notes = \
>
> fluteOne.ily \
>
> fluteTwo.ily \
>
> oboeOne.ily \
>
> oboeTwo.ily \
>
> clarinetOne.ily \
>
> clarinetTwo.ily \
>
> clarinetThree.ily \
>
> bassclarinet.ily \
>
> bassoonOne.ily \
>
> bassoonTwo.ily \
>
> altosaxOne.ily \
>
> altosaxTwo.ily \
>
> tenorsax.ily \
>
> barisax.ily \
>
> hornOne.ily \
>
> hornTwo.ily \
>
> hornThree.ily \
>
> hornFour.ily \
>
> trumpetOne.ily \
>
> trumpetTwo.ily \
>
> trumpetThree.ily \
>
> tromboneOne.ily \
>
> tromboneTwo.ily \
>
> tromboneThree.ily \
>
> euphoniumOne.ily \
>
> euphoniumTwo.ily \
>
> tuba.ily \
>
> timpani.ily \
>
> snardrum.ily \
>
> bassdrum.ily \
>
> cymbals.ily \
>
> tamtam.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)
>
> $(piece)V.pdf: $(piece)V.ly $(notes)
>
>
> # The dependencies of the full score.
>
> $(piece).pdf: $(piece).ly $(notes)
>
>
> # The dependencies of the parts.
>
> $(piece)-fluteOne.pdf: $(piece)-fluteOne.ly fluteOne.ily
>
> $(piece)-fluteTwo.pdf: $(piece)-fluteTwo.ly fluteTwo.ily
>
> $(piece)-oboeOne.pdf: $(piece)-oboeOne.ly oboeOne.ily
>
> $(piece)-oboeTwo.pdf: $(piece)-oboeTwo.ly oboeTwo.ily
>
> $(piece)-clarinetOne.pdf: $(piece)-clarinetOne.ly clarinetOne.ily
>
> $(piece)-clarinetTwo.pdf: $(piece)-clarinetTwo.ly clarinetTwo.ily
>
> $(piece)-clarinetThree.pdf: $(piece)-clarinetThree.ly clarinetThree.ily
>
> $(piece)-bassclarinet.pdf: $(piece)-bassclarinet.ly bassclarinet.ily
>
> $(piece)-bassoonOne.pdf: $(piece)-bassoonOne.ly bassoonOne.ily
>
> $(piece)-bassoonTwo.pdf: $(piece)-bassoonTwo.ly bassoonTwo.ily
>
> $(piece)-altosaxOne.pdf: $(piece)-altosaxOne.ly altosaxOne.ily
>
> $(piece)-altosaxTwo.pdf: $(piece)-altosaxTwo.ly altosaxTwo.ily
>
> $(piece)-tenorsax.pdf: $(piece)-tenorsax.ly tenorsax.ily
>
> $(piece)-barisax.pdf: $(piece)-barisax.ly barisax.ily
>
> $(piece)-hornOne.pdf: $(piece)-hornOne.ly hornOne.ily
>
> $(piece)-hornTwo.pdf: $(piece)-hornTwo.ly hornTwo.ily
>
> $(piece)-hornThree.pdf: $(piece)-hornThree.ly hornThree.ily
>
> $(piece)-hornFour.pdf: $(piece)-hornFour.ly hornFour.ily
>
> $(piece)-trumpetOne.pdf: $(piece)-trumpetOne.ly trumpetOne.ily
>
> $(piece)-trumpetTwo.pdf: $(piece)-trumpetTwo.ly trumpetTwo.ily
>
> $(piece)-trumpetThree.pdf: $(piece)-trumpetThree.ly trumpetThree.ily
>
> $(piece)-tromboneOne.pdf: $(piece)-tromboneOne.ly tromboneOne.ily
>
> $(piece)-tromboneTwo.pdf: $(piece)-tromboneTwo.ly tromboneTwo.ily
>
> $(piece)-tromboneThree.pdf: $(piece)-tromboneThree.ly tromboneThree.ily
>
> $(piece)-euphoniumOne.pdf: $(piece)-euphoniumOne.ly euphoniumOne.ily
>
> $(piece)-euphoniumTwo.pdf: $(piece)-euphoniumTwo.ly euphoniumTwo.ily
>
> $(piece)-tuba.pdf: $(piece)-tuba.ly tuba.ily
>
> $(piece)-timpani.pdf: $(piece)-timpani.ly timpani.ily
>
> $(piece)-snaredrum.pdf: $(piece)-snaredrum.ly snaredrum.ily
>
> $(piece)-bassdrum.pdf: $(piece)-bassdrum.ly bassdrum.ily
>
> $(piece)-cymbals.pdf: $(piece)-cymbals.ly cymbals.ily
>
> $(piece)-tamtam.pdf: $(piece)-tamtam.ly tamtam.ily
>
>
> # Type `make score' to generate the full score of all four
>
> # movements as one file.
>
> .PHONY: score
>
> score: $(piece).pdf
>
>
> # Type `make parts' to generate all parts.
>
> # Type `make foo.pdf' to generate the part for instrument `foo'.
>
> # Example: `make symphony-cello.pdf'.
>
> .PHONY: parts
>
> parts: \
>
>        $(piece)-fluteOne.pdf \
>
>        $(piece)-fluteTwo.pdf \
>
>        $(piece)-oboeOne.pdf \
>
>        $(piece)-oboeTwo.pdf \
>
>        $(piece)-clarinetOne.pdf \
>
>        $(piece)-clarinetTwo.pdf \
>
>        $(piece)-clarinetThree.pdf \
>
>        $(piece)-bassclarinet.pdf \
>
>        $(piece)-bassoonOne.pdf \
>
>        $(piece)-bassoonTwo.pdf \
>
>        $(piece)-altosaxOne.pdf \
>
>        $(piece)-altosaxTwo.pdf \
>
>        $(piece)-tenorsax.pdf \
>
>        $(piece)-barisax.pdf \
>
>        $(piece)-hornOne.pdf \
>
>        $(piece)-hornTwo.pdf \
>
>        $(piece)-hornThree.pdf \
>
>        $(piece)-hornFour.pdf \
>
>        $(piece)-trumpetOne.pdf \
>
>        $(piece)-trumpetTwo.pdf \
>
>        $(piece)-trumpetThree.pdf \
>
>        $(piece)-tromboneOne.pdf \
>
>        $(piece)-tromboneTwo.pdf \
>
>        $(piece)-tromboneThree.pdf \
>
>        $(piece)-euphoniumOne.pdf \
>
>        $(piece)-euphoniumTwo.pdf \
>
>        $(piece)-tuba.pdf \
>
>        $(piece)-timpani.pdf \
>
>        $(piece)-snaredrum.pdf \
>
>        $(piece)-bassdrum.pdf \
>
>        $(piece)-cymbals.pdf \
>
>        $(piece)-tamtam.pdf
>
>
> # Type `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 \
>
>            $(piece)V.pdf
>
>
> all: score parts movements
>
>
> archive:
>
> tar -cvvf symphony2.tar \ # this line begins with a tab
>
> --exclude=*pdf --exclude=*~ \
>
> --exclude=*midi --exclude=*.tar \
>
> ../Symphony2/*
>
> _______________________________________________
>
>
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>

[Attachment #5 (text/html)]

Hi Jacques,<br><br>I&#39;ve attached my makefile. You can compare it to pp. 50-52 of \
the Lilypond &quot;Usage&quot; manual, which is what I adapted it from. Any advice \
would be much appreciated.<div><br></div><div>Craig</div><div><br></div><br><div \
class="gmail_quote">On Thu Jan 01 2015 at 12:29:28 AM Jacques Menu &lt;<a \
href="mailto:imj-muzhic@bluewin.ch">imj-muzhic@bluewin.ch</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello \
Craig,<div><br></div><div>Tabs play an important role in makefiles, and the bullets \
on the first two lines are suspect to me. Maybe an effect of copying into your E-Mail \
message.</div><div><br></div><div>Can you supply as attachments the original and \
modified makefiles? The result of  «  diff originalOne yours   » will be \
instructive.</div><div><br></div><div>JM</div><div><br></div><div><div><blockquote \
type="cite"><div>Le 31 déc. 2014 à 00:27, Craig Dabelstein &lt;<a \
href="mailto:craig.dabelstein@gmail.com" \
target="_blank">craig.dabelstein@gmail.com</a>&gt; a écrit \
:</div><br><div></div></blockquote></div></div></div><div \
style="word-wrap:break-word"><div><div><blockquote type="cite"><div>Hi \
all,<div><br></div><div>Does anyone have experience with using \
makefiles?</div><div><br></div><div>I&#39;ve adapted the example from the usage \
documentation but I keep getting errors, such as *** No rule to make target \
`score&#39;</div><div><br></div><div>Any help or tips would be greatly \
appreciated.</div><div><br></div><div>Craig</div><div><br></div>







<div><br></div><div>







<ul>
<li><span>piece = symphony2</span></li>
<li><span>CPU_CORES=`cat /proc/cpuinfo | grep -m1 &quot;cpu cores&quot; | sed \
s/&quot;.*: &quot;//`</span></li> </ul><p><span>LILY_CMD = lilypond \
-ddelete-intermediate-files \</span></p><p>                                  \
-dno-point-and-click -djob-count=$(CPU_CORES)</p><p>.SUFFIXES: .ly .ily .pdf \
.midi</p><p><span># Input and output files are searched in the directories listed \
in</span></p><p><span># the VPATH variable.   All of them are subdirectories of the \
current</span></p><p><span># directory (given by the GNU make variable \
`CURDIR&#39;).</span></p><p><span>#CURDIR = $(shell pwd)</span></p><p><span>VPATH = \
\</span></p><p><span>   $(CURDIR)/Scores \</span></p><p><span>   $(CURDIR)/PDF \
\</span></p><p><span>   $(CURDIR)/Parts \</span></p><p><span>   \
$(CURDIR)/Notes</span></p><p><span># The pattern rule to create PDF and MIDI files \
from a LY input file.</span></p><p><span># The .pdf output files are put into the \
`PDF&#39; subdirectory, and the</span></p><p><span># .midi files go into the \
`MIDI&#39; subdirectory.</span></p><p><span>%.pdf %.midi: \
%.ly</span></p><p><span><span>	</span>$(LILY_CMD) $&lt;; \
\</span></p><p><span><span>	</span>if test -f &quot;$*.pdf&quot;; then \
\</span></p><p><span><span>	</span><span>	</span>mv &quot;$*.pdf&quot; PDF/; \
\</span></p><p><span><span>	</span>fi; \</span></p><p><span><span>	</span>if test -f \
&quot;$*.midi&quot;; then \</span></p><p><span><span>	</span><span>	</span>mv \
&quot;$*.midi&quot; MIDI/; \</span></p><p><span><span>	</span>fi  \
</span></p><p><span></span><br></p><p><span>notes = \
\</span></p><p><span><span>	</span>fluteOne.ily \</span></p><p><span>fluteTwo.ily \
\</span></p><p><span>oboeOne.ily \</span></p><p><span>oboeTwo.ily \
\</span></p><p><span>clarinetOne.ily \</span></p><p><span>clarinetTwo.ily \
\</span></p><p><span>clarinetThree.ily \</span></p><p><span>bassclarinet.ily \
\</span></p><p><span>bassoonOne.ily \</span></p><p><span>bassoonTwo.ily \
\</span></p><p><span>altosaxOne.ily \</span></p><p><span>altosaxTwo.ily \
\</span></p><p><span>tenorsax.ily \</span></p><p><span>barisax.ily \
\</span></p><p><span>hornOne.ily \</span></p><p><span>hornTwo.ily \
\</span></p><p><span>hornThree.ily \</span></p><p><span>hornFour.ily \
\</span></p><p><span>trumpetOne.ily \</span></p><p><span>trumpetTwo.ily \
\</span></p><p><span>trumpetThree.ily \</span></p><p><span>tromboneOne.ily \
\</span></p><p><span>tromboneTwo.ily \</span></p><p><span>tromboneThree.ily \
\</span></p><p><span>euphoniumOne.ily \</span></p><p><span>euphoniumTwo.ily \
\</span></p><p><span>tuba.ily \</span></p><p><span>timpani.ily \
\</span></p><p><span>snardrum.ily \</span></p><p><span>bassdrum.ily \
\</span></p><p><span>cymbals.ily \
\</span></p><p><span>tamtam.ily</span></p><p><span></span><br></p><p><span># The \
dependencies of the movements.</span></p><p><span>$(piece)I.pdf: $(piece)<a \
href="http://I.ly" target="_blank">I.ly</a> \
$(notes)</span></p><p><span>$(piece)II.pdf: $(piece)<a href="http://II.ly" \
target="_blank">II.ly</a> $(notes)</span></p><p><span>$(piece)III.pdf: $(piece)<a \
href="http://III.ly" target="_blank">III.ly</a> \
$(notes)</span></p><p><span>$(piece)IV.pdf: $(piece)<a href="http://IV.ly" \
target="_blank">IV.ly</a> $(notes)</span></p><p><span>$(piece)V.pdf: $(piece)<a \
href="http://V.ly" target="_blank">V.ly</a> \
$(notes)</span></p><p><span></span><br></p><p><span># The dependencies of the full \
score.</span></p><p><span>$(piece).pdf: $(piece).ly \
$(notes)</span></p><p><span></span><br></p><p><span># The dependencies of the \
parts.</span></p><p><span>$(piece)-fluteOne.pdf: $(piece)-<a \
href="http://fluteOne.ly" target="_blank">fluteOne.ly</a> \
fluteOne.ily</span></p><p><span>$(piece)-fluteTwo.pdf: $(piece)-<a \
href="http://fluteTwo.ly" target="_blank">fluteTwo.ly</a> \
fluteTwo.ily</span></p><p><span>$(piece)-oboeOne.pdf: $(piece)-<a \
href="http://oboeOne.ly" target="_blank">oboeOne.ly</a> \
oboeOne.ily</span></p><p><span>$(piece)-oboeTwo.pdf: $(piece)-<a \
href="http://oboeTwo.ly" target="_blank">oboeTwo.ly</a> \
oboeTwo.ily</span></p><p><span>$(piece)-clarinetOne.pdf: $(piece)-<a \
href="http://clarinetOne.ly" target="_blank">clarinetOne.ly</a> \
clarinetOne.ily</span></p><p><span>$(piece)-clarinetTwo.pdf: $(piece)-<a \
href="http://clarinetTwo.ly" target="_blank">clarinetTwo.ly</a> \
clarinetTwo.ily</span></p><p><span>$(piece)-clarinetThree.pdf: $(piece)-<a \
href="http://clarinetThree.ly" target="_blank">clarinetThree.ly</a> \
clarinetThree.ily</span></p><p><span>$(piece)-bassclarinet.pdf: $(piece)-<a \
href="http://bassclarinet.ly/" target="_blank">bassclarinet.ly</a> \
bassclarinet.ily</span></p><p><span>$(piece)-bassoonOne.pdf: $(piece)-<a \
href="http://bassoonOne.ly" target="_blank">bassoonOne.ly</a> \
bassoonOne.ily</span></p><p><span>$(piece)-bassoonTwo.pdf: $(piece)-<a \
href="http://bassoonTwo.ly" target="_blank">bassoonTwo.ly</a> \
bassoonTwo.ily</span></p><p><span>$(piece)-altosaxOne.pdf: $(piece)-<a \
href="http://altosaxOne.ly" target="_blank">altosaxOne.ly</a> \
altosaxOne.ily</span></p><p><span>$(piece)-altosaxTwo.pdf: $(piece)-<a \
href="http://altosaxTwo.ly" target="_blank">altosaxTwo.ly</a> \
altosaxTwo.ily</span></p><p><span>$(piece)-tenorsax.pdf: $(piece)-<a \
href="http://tenorsax.ly/" target="_blank">tenorsax.ly</a> \
tenorsax.ily</span></p><p><span>$(piece)-barisax.pdf: $(piece)-<a \
href="http://barisax.ly/" target="_blank">barisax.ly</a> \
barisax.ily</span></p><p><span>$(piece)-hornOne.pdf: $(piece)-<a \
href="http://hornOne.ly" target="_blank">hornOne.ly</a> \
hornOne.ily</span></p><p><span>$(piece)-hornTwo.pdf: $(piece)-<a \
href="http://hornTwo.ly" target="_blank">hornTwo.ly</a> \
hornTwo.ily</span></p><p><span>$(piece)-hornThree.pdf: $(piece)-<a \
href="http://hornThree.ly" target="_blank">hornThree.ly</a> \
hornThree.ily</span></p><p><span>$(piece)-hornFour.pdf: $(piece)-<a \
href="http://hornFour.ly" target="_blank">hornFour.ly</a> \
hornFour.ily</span></p><p><span>$(piece)-trumpetOne.pdf: $(piece)-<a \
href="http://trumpetOne.ly" target="_blank">trumpetOne.ly</a> \
trumpetOne.ily</span></p><p><span>$(piece)-trumpetTwo.pdf: $(piece)-<a \
href="http://trumpetTwo.ly" target="_blank">trumpetTwo.ly</a> \
trumpetTwo.ily</span></p><p><span>$(piece)-trumpetThree.pdf: $(piece)-<a \
href="http://trumpetThree.ly" target="_blank">trumpetThree.ly</a> \
trumpetThree.ily</span></p><p><span>$(piece)-tromboneOne.pdf: $(piece)-<a \
href="http://tromboneOne.ly" target="_blank">tromboneOne.ly</a> \
tromboneOne.ily</span></p><p><span>$(piece)-tromboneTwo.pdf: $(piece)-<a \
href="http://tromboneTwo.ly" target="_blank">tromboneTwo.ly</a> \
tromboneTwo.ily</span></p><p><span>$(piece)-tromboneThree.pdf: $(piece)-<a \
href="http://tromboneThree.ly" target="_blank">tromboneThree.ly</a> \
tromboneThree.ily</span></p><p><span>$(piece)-euphoniumOne.pdf: $(piece)-<a \
href="http://euphoniumOne.ly" target="_blank">euphoniumOne.ly</a> \
euphoniumOne.ily</span></p><p><span>$(piece)-euphoniumTwo.pdf: $(piece)-<a \
href="http://euphoniumTwo.ly" target="_blank">euphoniumTwo.ly</a> \
euphoniumTwo.ily</span></p><p><span>$(piece)-tuba.pdf: $(piece)-<a \
href="http://tuba.ly/" target="_blank">tuba.ly</a> \
tuba.ily</span></p><p><span>$(piece)-timpani.pdf: $(piece)-<a \
href="http://timpani.ly/" target="_blank">timpani.ly</a> \
timpani.ily</span></p><p><span>$(piece)-snaredrum.pdf: $(piece)-<a \
href="http://snaredrum.ly/" target="_blank">snaredrum.ly</a> \
snaredrum.ily</span></p><p><span>$(piece)-bassdrum.pdf: $(piece)-<a \
href="http://bassdrum.ly/" target="_blank">bassdrum.ly</a> \
bassdrum.ily</span></p><p><span>$(piece)-cymbals.pdf: $(piece)-<a \
href="http://cymbals.ly/" target="_blank">cymbals.ly</a> \
cymbals.ily</span></p><p><span>$(piece)-tamtam.pdf: $(piece)-<a \
href="http://tamtam.ly/" target="_blank">tamtam.ly</a> \
tamtam.ily</span></p><p><span></span><br></p><p><span># Type `make score&#39; to \
generate the full score of all four</span></p><p><span># movements as one \
file.</span></p><p><span>.PHONY: score</span></p><p><span>score: \
$(piece).pdf</span></p><p><span></span><br></p><p><span># Type `make parts&#39; to \
generate all parts.</span></p><p><span># Type `make foo.pdf&#39; to generate the part \
for instrument `foo&#39;.</span></p><p><span># Example: `make \
symphony-cello.pdf&#39;.</span></p><p><span>.PHONY: parts</span></p><p><span>parts: \
\</span></p><p><span>           $(piece)-fluteOne.pdf \</span></p><p><span>           \
$(piece)-fluteTwo.pdf \</span></p><p><span>           $(piece)-oboeOne.pdf \
\</span></p><p><span>           $(piece)-oboeTwo.pdf \</span></p><p><span>           \
$(piece)-clarinetOne.pdf \</span></p><p><span>           $(piece)-clarinetTwo.pdf \
\</span></p><p><span>           $(piece)-clarinetThree.pdf \</span></p><p><span>      \
$(piece)-bassclarinet.pdf \</span></p><p><span>           $(piece)-bassoonOne.pdf \
\</span></p><p><span>           $(piece)-bassoonTwo.pdf \</span></p><p><span>         \
$(piece)-altosaxOne.pdf \</span></p><p><span>           $(piece)-altosaxTwo.pdf \
\</span></p><p><span>           $(piece)-tenorsax.pdf \</span></p><p><span>           \
$(piece)-barisax.pdf \</span></p><p><span>           $(piece)-hornOne.pdf \
\</span></p><p><span>           $(piece)-hornTwo.pdf \</span></p><p><span>           \
$(piece)-hornThree.pdf \</span></p><p><span>           $(piece)-hornFour.pdf \
\</span></p><p><span>           $(piece)-trumpetOne.pdf \</span></p><p><span>         \
$(piece)-trumpetTwo.pdf \</span></p><p><span>           $(piece)-trumpetThree.pdf \
\</span></p><p><span>           $(piece)-tromboneOne.pdf \</span></p><p><span>        \
$(piece)-tromboneTwo.pdf \</span></p><p><span>           $(piece)-tromboneThree.pdf \
\</span></p><p><span>           $(piece)-euphoniumOne.pdf \</span></p><p><span>       \
$(piece)-euphoniumTwo.pdf \</span></p><p><span>           $(piece)-tuba.pdf \
\</span></p><p><span>           $(piece)-timpani.pdf \</span></p><p><span>           \
$(piece)-snaredrum.pdf \</span></p><p><span>           $(piece)-bassdrum.pdf \
\</span></p><p><span>           $(piece)-cymbals.pdf \</span></p><p><span>           \
$(piece)-tamtam.pdf</span></p><div><span>          </span><br></div><p><span># Type \
`make movements&#39; to generate files for the</span></p><p><span># four movements \
separately.</span></p><p><span>.PHONY: movements</span></p><p><span>movements: \
$(piece)I.pdf \</span></p><p><span>                 $(piece)II.pdf \
\</span></p><p><span>                 $(piece)III.pdf \</span></p><p><span>           \
$(piece)IV.pdf \</span></p><p><span>                 \
$(piece)V.pdf</span></p><p><span></span><br></p><p><span>all: score parts \
movements</span></p><p><span></span><br></p><p><span>archive:</span></p><p><span><span>	</span>tar \
-cvvf symphony2.tar \<span>	</span># this line begins with a \
tab</span></p><p><span><span>	</span>--exclude=*pdf --exclude=*~ \
\</span></p><p><span><span>	</span>--exclude=*midi --exclude=*.tar \
\</span></p><p><span><span>	</span>../Symphony2/*</span></p></div></div></blockquote></div></div></div><div \
style="word-wrap:break-word"><div><div><blockquote type="cite"><div> \
_______________________________________________</div></blockquote></div></div></div><div \
style="word-wrap:break-word"><div><div><blockquote type="cite"><div><br>lilypond-user \
mailing list<br><a href="mailto:lilypond-user@gnu.org" \
target="_blank">lilypond-user@gnu.org</a><br><a \
href="https://lists.gnu.org/mailman/listinfo/lilypond-user" \
target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br></div></blockquote></div></div></div></blockquote></div>


--001a113f97ac2d3b2d050b840531--


["my makefile.rtf" (text/rtf)]

{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\level \
jc0\leveljcn0\levelfollow0\levelstartat0\levelspace360\levelindent0{\*\levelmarker \
\{none\}.}{\leveltext\leveltemplateid1\'01.;}{\levelnumbers;}\fi-360\li720\lin720 \
}{\listname ;}\listid1}} \
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} \
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \
\deftab720 \pard\tx220\tx720\pardeftab720\li720\fi-720
\ls1\ilvl0
\f0\fs24 \cf0 \expnd0\expndtw0\kerning0
piece = symphony2\
CPU_CORES=`cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//`\
\pard\pardeftab720
\cf0 \expnd0\expndtw0\kerning0
LILY_CMD = lilypond -ddelete-intermediate-files \\\
                      -dno-point-and-click #-djob-count=$(CPU_CORES)\
\
\
.SUFFIXES: .ly .ily .pdf .midi\
\
# Input and output files are searched in the directories listed in\
# the VPATH variable.  All of them are subdirectories of the current\
# directory (given by the GNU make variable `CURDIR').\
#CURDIR = $(shell pwd)\
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 put into the `PDF' subdirectory, and the\
# .midi files go 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 \
\
notes = \\\
	fluteOne.ily \\\
fluteTwo.ily \\\
oboeOne.ily \\\
oboeTwo.ily \\\
clarinetOne.ily \\\
clarinetTwo.ily \\\
clarinetThree.ily \\\
bassclarinet.ily \\\
bassoonOne.ily \\\
bassoonTwo.ily \\\
altosaxOne.ily \\\
altosaxTwo.ily \\\
tenorsax.ily \\\
barisax.ily \\\
hornOne.ily \\\
hornTwo.ily \\\
hornThree.ily \\\
hornFour.ily \\\
trumpetOne.ily \\\
trumpetTwo.ily \\\
trumpetThree.ily \\\
tromboneOne.ily \\\
tromboneTwo.ily \\\
tromboneThree.ily \\\
euphoniumOne.ily \\\
euphoniumTwo.ily \\\
tuba.ily \\\
timpani.ily \\\
snardrum.ily \\\
bassdrum.ily \\\
cymbals.ily \\\
tamtam.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)\
$(piece)V.pdf: $(piece)V.ly $(notes)\
\
# The dependencies of the full score.\
$(piece).pdf: $(piece).ly $(notes)\
\
# The dependencies of the parts.\
$(piece)-fluteOne.pdf: $(piece)-fluteOne.ly fluteOne.ily\
$(piece)-fluteTwo.pdf: $(piece)-fluteTwo.ly fluteTwo.ily\
$(piece)-oboeOne.pdf: $(piece)-oboeOne.ly oboeOne.ily\
$(piece)-oboeTwo.pdf: $(piece)-oboeTwo.ly oboeTwo.ily\
$(piece)-clarinetOne.pdf: $(piece)-clarinetOne.ly clarinetOne.ily\
$(piece)-clarinetTwo.pdf: $(piece)-clarinetTwo.ly clarinetTwo.ily\
$(piece)-clarinetThree.pdf: $(piece)-clarinetThree.ly clarinetThree.ily\
$(piece)-bassclarinet.pdf: $(piece)-bassclarinet.ly bassclarinet.ily\
$(piece)-bassoonOne.pdf: $(piece)-bassoonOne.ly bassoonOne.ily\
$(piece)-bassoonTwo.pdf: $(piece)-bassoonTwo.ly bassoonTwo.ily\
$(piece)-altosaxOne.pdf: $(piece)-altosaxOne.ly altosaxOne.ily\
$(piece)-altosaxTwo.pdf: $(piece)-altosaxTwo.ly altosaxTwo.ily\
$(piece)-tenorsax.pdf: $(piece)-tenorsax.ly tenorsax.ily\
$(piece)-barisax.pdf: $(piece)-barisax.ly barisax.ily\
$(piece)-hornOne.pdf: $(piece)-hornOne.ly hornOne.ily\
$(piece)-hornTwo.pdf: $(piece)-hornTwo.ly hornTwo.ily\
$(piece)-hornThree.pdf: $(piece)-hornThree.ly hornThree.ily\
$(piece)-hornFour.pdf: $(piece)-hornFour.ly hornFour.ily\
$(piece)-trumpetOne.pdf: $(piece)-trumpetOne.ly trumpetOne.ily\
$(piece)-trumpetTwo.pdf: $(piece)-trumpetTwo.ly trumpetTwo.ily\
$(piece)-trumpetThree.pdf: $(piece)-trumpetThree.ly trumpetThree.ily\
$(piece)-tromboneOne.pdf: $(piece)-tromboneOne.ly tromboneOne.ily\
$(piece)-tromboneTwo.pdf: $(piece)-tromboneTwo.ly tromboneTwo.ily\
$(piece)-tromboneThree.pdf: $(piece)-tromboneThree.ly tromboneThree.ily\
$(piece)-euphoniumOne.pdf: $(piece)-euphoniumOne.ly euphoniumOne.ily\
$(piece)-euphoniumTwo.pdf: $(piece)-euphoniumTwo.ly euphoniumTwo.ily\
$(piece)-tuba.pdf: $(piece)-tuba.ly tuba.ily\
$(piece)-timpani.pdf: $(piece)-timpani.ly timpani.ily\
$(piece)-snaredrum.pdf: $(piece)-snaredrum.ly snaredrum.ily\
$(piece)-bassdrum.pdf: $(piece)-bassdrum.ly bassdrum.ily\
$(piece)-cymbals.pdf: $(piece)-cymbals.ly cymbals.ily\
$(piece)-tamtam.pdf: $(piece)-tamtam.ly tamtam.ily\
\
# Type `make score' to generate the full score of all four\
# movements as one file.\
.PHONY: score\
score: $(piece).pdf\
\
# Type `make parts' to generate all parts.\
# Type `make foo.pdf' to generate the part for instrument `foo'.\
# Example: `make symphony-cello.pdf'.\
.PHONY: parts\
parts: \\\
       $(piece)-fluteOne.pdf \\\
       $(piece)-fluteTwo.pdf \\\
       $(piece)-oboeOne.pdf \\\
       $(piece)-oboeTwo.pdf \\\
       $(piece)-clarinetOne.pdf \\\
       $(piece)-clarinetTwo.pdf \\\
       $(piece)-clarinetThree.pdf \\\
       $(piece)-bassclarinet.pdf \\\
       $(piece)-bassoonOne.pdf \\\
       $(piece)-bassoonTwo.pdf \\\
       $(piece)-altosaxOne.pdf \\\
       $(piece)-altosaxTwo.pdf \\\
       $(piece)-tenorsax.pdf \\\
       $(piece)-barisax.pdf \\\
       $(piece)-hornOne.pdf \\\
       $(piece)-hornTwo.pdf \\\
       $(piece)-hornThree.pdf \\\
       $(piece)-hornFour.pdf \\\
       $(piece)-trumpetOne.pdf \\\
       $(piece)-trumpetTwo.pdf \\\
       $(piece)-trumpetThree.pdf \\\
       $(piece)-tromboneOne.pdf \\\
       $(piece)-tromboneTwo.pdf \\\
       $(piece)-tromboneThree.pdf \\\
       $(piece)-euphoniumOne.pdf \\\
       $(piece)-euphoniumTwo.pdf \\\
       $(piece)-tuba.pdf \\\
       $(piece)-timpani.pdf \\\
       $(piece)-snaredrum.pdf \\\
       $(piece)-bassdrum.pdf \\\
       $(piece)-cymbals.pdf \\\
       $(piece)-tamtam.pdf\
      \
# Type `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 \\\
           $(piece)V.pdf\
\
all: score parts movements\
\
archive:\
	tar -cvvf symphony2.tar \\	# this line begins with a tab\
	--exclude=*pdf --exclude=*~ \\\
	--exclude=*midi --exclude=*.tar \\\
	../Symphony2/*\
}



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic