This commit is contained in:
2024-11-09 10:22:21 +01:00
parent ed6a1fb612
commit 02557ee6bc
13 changed files with 28 additions and 18 deletions
+4 -9
View File
@@ -1,19 +1,14 @@
docker = podman docker = podman
build_dir = build build_dir = build
tex_deps = variables.tt library/*/*/*.tt song_choices.csv song_template.tt empty_page_template.tt propers/*.tt purpose_processing.tt template_dir = templates
config_dir = config
.PHONY: all .PHONY: all
.PRECIOUS: %.tex .PRECIOUS: %.tex
all: leadsheet_collection.pdf choir_scores.pdf print_a3.pdf clean_intermediate #print_a4.pdf all: leadsheet_collection.pdf choir_scores.pdf print_a3.pdf clean_intermediate #print_a4.pdf
%.pdf: build %.pdf: build
$(MAKE) -C $(build_dir) $@ $(MAKE) -C $(build_dir) $@
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt %.tex: build
tpage $< > $(build_dir)/$@ $(MAKE) -C $(template_dir) $@
musician_scores.tex: musician_scores.tt $(tex_deps)
tpage $< > $(build_dir)/$@
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
tpage --define parts=band $< > $(build_dir)/$@
choir_scores.tex: musician_scores.tt $(tex_deps)
tpage --define parts=SATB $< > $(build_dir)/$@
clean_intermediate: clean_intermediate:
$(MAKE) -C $(build_dir) clean_intermediate $(MAKE) -C $(build_dir) clean_intermediate
build: build-Makefile build: build-Makefile
+13
View File
@@ -0,0 +1,13 @@
build_dir = ../build
library_dir = ../library
propers_dir = ../propers
config_dir = ../config
tex_deps = *.tt $(library_dir)/*/*/*.tt $(config_dir)/song_choices.csv $(propers_dir)/*.tt
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
tpage $< > $(build_dir)/$@
musician_scores.tex: musician_scores.tt $(tex_deps)
tpage $< > $(build_dir)/$@
leadsheet_collection.tex: musician_scores.tt $(tex_deps)
tpage --define parts=band $< > $(build_dir)/$@
choir_scores.tex: musician_scores.tt $(tex_deps)
tpage --define parts=SATB $< > $(build_dir)/$@
+1 -1
View File
@@ -1,6 +1,6 @@
\vspace*{\fill} \vspace*{\fill}
[% USE qr_codes = datafile('qr_codes.csv', delim='|') %] [% USE qr_codes = datafile("${config_dir}/qr_codes.csv", delim='|') %]
[% FOREACH qr_code = qr_codes -%] [% FOREACH qr_code = qr_codes -%]
View File
View File
@@ -75,7 +75,7 @@ RawFeature = {+ss06}
[% subtitle %] [% subtitle %]
\end{centering} \end{centering}
[% USE song_choices = datafile('song_choices.csv', delim='|') %] [% USE song_choices = datafile("${config_dir}/song_choices.csv", delim='|') %]
[% IF parts == 0 -%] [% IF parts == 0 -%]
parts = ensemble parts = ensemble
[% END -%] [% END -%]
@@ -11,25 +11,25 @@
[% IF NOT gregorian -%] [% IF NOT gregorian -%]
\textbf{\LARGE{Activate gregorian}} \textbf{\LARGE{Activate gregorian}}
[% ELSE -%] [% ELSE -%]
\gregorioscore{../library/[% scores.gregorian %]} \gregorioscore{[% library_dir %]/[% scores.gregorian %]}
[% END -%] [% END -%]
[% ELSE -%] [% ELSE -%]
\lilypondfile{[% IF parts; \lilypondfile{[% IF parts;
IF parts == 'band'; IF parts == 'band';
IF scores.leadsheet; IF scores.leadsheet;
GET "../library/${scores.leadsheet}"; GET "${library_dir}/${scores.leadsheet}";
ELSE; ELSE;
GET "../library/${scores.SATB}"; GET "${library_dir}/${scores.SATB}";
END; END;
ELSIF parts == 'SATB'; ELSIF parts == 'SATB';
IF scores.SATB; IF scores.SATB;
GET "../library/${scores.SATB}"; GET "${library_dir}/${scores.SATB}";
ELSE; ELSE;
GET "../library/${scores.leadsheet}"; GET "${library_dir}/${scores.leadsheet}";
END; END;
END; END;
ELSE; ELSE;
GET "../library/${scores.congregation}"; GET "${library_dir}/${scores.congregation}";
END; %]} END; %]}
[% END -%] [% END -%]
[% ELSIF lyrics -%] [% ELSIF lyrics -%]
+1 -1
View File
@@ -4,7 +4,7 @@
\begin{document} \begin{document}
[% INCLUDE head.tt %] [% INCLUDE head.tt %]
[% USE song_choices = datafile('song_choices.csv', delim='|') %] [% USE song_choices = datafile("${config_dir}/song_choices.csv", delim='|') %]
[% FOREACH song = song_choices %] [% FOREACH song = song_choices %]
[% template = song.template == '' ? "song_template.tt" : song.template -%] [% template = song.template == '' ? "song_template.tt" : song.template -%]
+2
View File
@@ -8,5 +8,7 @@
small_footer = 0 small_footer = 0
lent = 0 lent = 0
meditations = 0 meditations = 0
config_dir = '../config'
library_dir = '../library'
-%] -%]
[%# PROCESS propers/per_annum_XIII.tt -%] [%# PROCESS propers/per_annum_XIII.tt -%]