summaryrefslogtreecommitdiff
path: root/Speisezettel_(CIS_-_Buch)/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Speisezettel_(CIS_-_Buch)/Makefile')
-rw-r--r--Speisezettel_(CIS_-_Buch)/Makefile23
1 files changed, 12 insertions, 11 deletions
diff --git a/Speisezettel_(CIS_-_Buch)/Makefile b/Speisezettel_(CIS_-_Buch)/Makefile
index 93067fb..ff3ee4e 100644
--- a/Speisezettel_(CIS_-_Buch)/Makefile
+++ b/Speisezettel_(CIS_-_Buch)/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 $<