4 base
<< w.nr
>> = << w.
basename >>
5 SRCS
<< w.nr
>> = << [w.srcfiles.parts|
join (" "), w.srcfiles.settings|
join (" ")]|
join(" ")|replace
( w.
basename, "$(base" ~ w.nr ~
")" ) >>
6 instruments
<< w.nr
>> = << w.instruments|
join (" ") >>
7 scores
<< w.nr
>> = << w.scores|
join (" ") >>
8 pdfs
<< w.nr
>> = $(instruments
<<w.nr
>>:%=$(OUT
)/$(base
<<w.nr
>>)_Instrument_
%.pdf
) \
9 $(scores
<<w.nr
>>:%=$(OUT
)/$(base
<<w.nr
>>)_Score_
%.pdf
)
13 texbase
= << latex.
basename >>
14 texscores
= << latex.scores|
join (" ") >>
15 texs
= $(texscores
:%=TeX_
$(texbase
)_Score_
%.
tex)
16 texpdfs
= $(texs
:%.
tex=$(OUT
)/%.pdf
) \
17 $(OUT
)/TeX_
$(texbase
)_Score_Instruments.pdf
20 distfiles
= $(instruments
:%=$(OUT
)/$(base
)_Instrument_
%.pdf
) $(texpdfs
)
22 <$ set jj
= joiner
(" ") -$>
23 additionalscores
=<$ for s in additionalscores
$> << jj
() >>$(OUT
)/<< s
>>.pdf
<$ endfor
$>
26 all: $(OUT
)<$ for w in works
$> $(instruments
<< w.nr
>>) $(scores
<< w.nr
>>)<$ endfor
$> $(additionalscores
)<$ if latex
$> tex<$ endif $>
28 instruments
<<w.nr
>>: $(instruments
<<w.nr
>>)
29 scores
<<w.nr
>>: $(scores
<<w.nr
>>)
35 lily
: <$ for w in works
$>$(pdfs
<< w.nr
>>) <$ endfor
$>$(additionalscores
)
41 $(instruments
<< w.nr
>>): % : $(OUT
)/$(base
<< w.nr
>>)_Instrument_
%.pdf
$(SRCS
<< w.nr
>>)
42 $(scores
<< w.nr
>>): % : $(OUT
)/$(base
<< w.nr
>>)_Score_
%.pdf
$(SRCS
<< w.nr
>>)
46 lilypond
-o
$(basename $@
) $<
49 timidity
-c
/etc
/timidity
/fluidr3_gm.cfg
-OwM
$< -o
$@
51 $(additionalscores
): $(OUT
)/%.pdf
: %.ly
52 lilypond
-dbackend
=eps
-o
$(basename $@
) $<
55 tex: $(additionalscores
) latex
56 latex
: <$ for w in works
$>$(pdfs
<< w.nr
>>) <$ endfor
$>$(texpdfs
)
59 $(OUT
)/TeX_
%.pdf
: TeX_
%.
tex
60 TEXINPUTS
=$(OUT
):orchestrallily
/:.
//: xelatex
-interaction
=batchmode
--output-directory
=$(OUT
)/ $<
63 zipdir
= $(base
)_Final
66 cp
-r
$(distfiles
) $(zipdir
)
67 rename
's/TeX_//' $(zipdir
)/*
68 rename
's/Score_(Full|Long)\./Score./' $(zipdir
)/*
69 zip
-jr
$(base
).zip
$(zipdir
)
74 @python ..
/..
/Diverses
/Webshop
/EditionKainhofer_CSVI_Generate.py
"<< settings_file >>" $(distfiles
)