summaryrefslogtreecommitdiff
path: root/Versuchung_Jesu/Makefile
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 21:04:10 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 21:04:10 +0200
commit25cff8f5b7bc95b9e1a2749b9dabd3774a400b94 (patch)
tree8bcfa00952fa4c75174819f2f6b28935be63d8dc /Versuchung_Jesu/Makefile
parent6cc043ee8113542bdcbd456c0e6f1d3bec663354 (diff)
downloadMusik-25cff8f5b7bc95b9e1a2749b9dabd3774a400b94.tar.xz
Versuchung_Jesu umbenannt
Diffstat (limited to 'Versuchung_Jesu/Makefile')
-rw-r--r--Versuchung_Jesu/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Versuchung_Jesu/Makefile b/Versuchung_Jesu/Makefile
new file mode 100644
index 0000000..ff3ee4e
--- /dev/null
+++ b/Versuchung_Jesu/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 $<