summaryrefslogtreecommitdiff
path: root/Sandmann/Makefile
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 17:34:35 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 17:34:35 +0200
commite875ba6faef78a6cfdfa3df501200b9227289d87 (patch)
tree8251ed762760d768aa9c5a251a1e6a770c16e106 /Sandmann/Makefile
parente050a1de8056d53164a833cf03bb7c326ec8d0a6 (diff)
downloadMusik-e875ba6faef78a6cfdfa3df501200b9227289d87.tar.xz
fix CIS Makefiles
Diffstat (limited to 'Sandmann/Makefile')
-rw-r--r--Sandmann/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Sandmann/Makefile b/Sandmann/Makefile
index 93067fb..ff3ee4e 100644
--- a/Sandmann/Makefile
+++ b/Sandmann/Makefile
@@ -1,10 +1,8 @@
CURDOC=$(shell basename "$(CURDIR)")
-DIRS=../Geh_aus_mein_Herz ../In_dieser_lieben_Sommerzeit
+EXTRAS=$(shell ../.meta/find-extras)
-EXTRAS=-mit-Texthinweisen
-
-all: $(CURDOC)$(EXTRAS).pdf
+all: $(CURDOC)$(EXTRAS).pdf $(CURDOC)$(EXTRAS)-tolino.pdf
print:
@echo $(CURDOC)$(EXTRAS).pdf
@@ -20,13 +18,7 @@ include ../.meta/*.mk
%.pre: %.ly
cat "$<" > "$@"
-Geh_aus_mein_Herz_%.pre: ../Geh_aus_mein_Herz/%.ly
- cat "$<" > "$@"
-
-In_dieser_lieben_Sommerzeit_%.pre: ../In_dieser_lieben_Sommerzeit/%.ly
- cat "$<" > "$@"
-
-%.post: %.pre $(patsubst %.ly,%.pre,$(shell find $(DIRS) -name '*.ly' | cut -d/ -f2,3 | tr '/' '_')) ../.meta/header.ly
+%.post: %.pre $(patsubst %.ly,%.pre, $(shell find . -name '*.ly')) ../.meta/header.ly
cat ../.meta/header.ly "$<" \
|m4 \
>"$@"
@@ -34,3 +26,12 @@ In_dieser_lieben_Sommerzeit_%.pre: ../In_dieser_lieben_Sommerzeit/%.ly
%.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 $<