Commit fd6b5b21 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

Create all output in a separate directory

parent d54e288c
SRCS = Eybler_Graduale_SperateInDeo_HV41_Music_GradualeSperateInDeo.ily Eybler_Graduale_SperateInDeo_HV41_Settings.ily
OUT=out
instruments = ObI ObII FagI FagII CorI CorII TrbI TrbII Tim VI VII Va S A T B Continuo VcB
scores = Full Long Particell Choral Original
pdfs = $(instruments:%=Eybler_Graduale_SperateInDeo_HV41_Instrument_%.pdf) $(scores:%=Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf)
pdfs = $(instruments:%=$(OUT)/Eybler_Graduale_SperateInDeo_HV41_Instrument_%.pdf) $(scores:%=$(OUT)/Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf)
texs = $(scores:%=TeX_Eybler_Graduale_SperateInDeo_HV41_Score_%.tex)
texpdfs = $(scores:%=$(OUT)/TeX_Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf)
.PHONY: all clean
all: $(instruments) $(scores) Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf
instruments: $(instruments)
scores: $(scores)
tex: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf
clean:
for i in $(ext); do \
rm -f Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.ps; \
rm -f Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.ps; \
done; \
rm -rf $(OUT)
# for i in $(ext); do \
# rm -f Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.ps; \
# rm -f Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.ps; \
# done; \
$(instruments): % : Eybler_Graduale_SperateInDeo_HV41_Instrument_%.pdf $(SRCS)
$(scores): % : Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf $(SRCS)
%.pdf : %.ly $(SRCS)
lilypond $<
$(OUT)/%.pdf : %.ly $(SRCS) $(OUT)
lilypond $< -o $@
Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.ly
lilypond -dbackend=eps $<
%.mp3 : %.midi
$(OUT)/%.mp3 : %.midi $(OUT)
timidity -c /etc/timidity/fluidr3_gm.cfg -OwM $< -o $@
tex: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf $(texpdfs)
$(OUT) :
mkdir -p $(OUT)
$(OUT)/TeX_%.pdf : TeX_%.tex $(OUT)
latex --output-directory=$(OUT)/ $<
*.aux
*.blg
*.log
*.toc
*.bbl
*~
*.ps
*.out
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment