summaryrefslogtreecommitdiff
path: root/Singet_dem_Herrn_ein_neues_Lied_/Makefile
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 18:09:31 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 18:09:31 +0200
commit7a69a0aee5a49754f925992b1a3046f650b4fc3d (patch)
tree36830b0a907dbfaa61ea80d6bae8b9f7bdea708c /Singet_dem_Herrn_ein_neues_Lied_/Makefile
parente875ba6faef78a6cfdfa3df501200b9227289d87 (diff)
downloadMusik-7a69a0aee5a49754f925992b1a3046f650b4fc3d.tar.xz
Singet_dem_Herrn_ein_neues_Lied_: ein Anfang
Diffstat (limited to 'Singet_dem_Herrn_ein_neues_Lied_/Makefile')
-rw-r--r--Singet_dem_Herrn_ein_neues_Lied_/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Singet_dem_Herrn_ein_neues_Lied_/Makefile b/Singet_dem_Herrn_ein_neues_Lied_/Makefile
new file mode 100644
index 0000000..ff3ee4e
--- /dev/null
+++ b/Singet_dem_Herrn_ein_neues_Lied_/Makefile
@@ -0,0 +1,37 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+EXTRAS=$(shell ../.meta/find-extras)
+
+all: $(CURDOC)$(EXTRAS).pdf $(CURDOC)$(EXTRAS)-tolino.pdf
+
+print:
+ @echo $(CURDOC)$(EXTRAS).pdf
+
+clean:
+ rm -f *.pre *.post
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+include ../.meta/*.mk
+
+%.pre: %.ly
+ cat "$<" > "$@"
+
+%.post: %.pre $(patsubst %.ly,%.pre, $(shell find . -name '*.ly')) ../.meta/header.ly
+ cat ../.meta/header.ly "$<" \
+ |m4 \
+ >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf(-x11)? $@" || true
+
+%.midi: %-midi.post
+ lilypond $<
+ for s in *-midi*.midi; do \
+ mv "$$s" "$${s%-midi*.midi}$${s##*-midi}"; \
+ done
+
+%.wav: %.midi
+ fluidsynth --audio-driver=file -o audio.file.name=$@ -i $<