Commit fd6b5b21 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Create all output in a separate directory

parent d54e288c
SRCS = Eybler_Graduale_SperateInDeo_HV41_Music_GradualeSperateInDeo.ily Eybler_Graduale_SperateInDeo_HV41_Settings.ily 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 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 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 .PHONY: all clean
all: $(instruments) $(scores) Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf all: $(instruments) $(scores) Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf
instruments: $(instruments) instruments: $(instruments)
scores: $(scores) scores: $(scores)
tex: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf
clean: clean:
for i in $(ext); do \ rm -rf $(OUT)
rm -f Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.ps; \ # for i in $(ext); do \
rm -f Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Instrument_$${i}.ps; \ # rm -f Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.pdf Eybler_Graduale_SperateInDeo_HV41_Score_$${i}.ps; \
done; \ # 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) $(instruments): % : Eybler_Graduale_SperateInDeo_HV41_Instrument_%.pdf $(SRCS)
$(scores): % : Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf $(SRCS) $(scores): % : Eybler_Graduale_SperateInDeo_HV41_Score_%.pdf $(SRCS)
%.pdf : %.ly $(SRCS) $(OUT)/%.pdf : %.ly $(SRCS) $(OUT)
lilypond $< lilypond $< -o $@
Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.ly Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.pdf: Eybler_Graduale_SperateInDeo_HV41_Music_AdditionalMeasures.ly
lilypond -dbackend=eps $< lilypond -dbackend=eps $<
%.mp3 : %.midi $(OUT)/%.mp3 : %.midi $(OUT)
timidity -c /etc/timidity/fluidr3_gm.cfg -OwM $< -o $@ 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
Supports Markdown
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