summaryrefslogtreecommitdiff
path: root/Schlafe_mein_Prinzchen_schlaf_ein/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-01-19 21:52:57 +0100
committerErich Eckner <git@eckner.net>2024-01-19 21:52:57 +0100
commit24a7d5fc8a6fc80ee96139f4505ce1f5f799e097 (patch)
tree8c4281b7acc3b7be0c63f3b4e7478b24fb37ab88 /Schlafe_mein_Prinzchen_schlaf_ein/Makefile
parent5f3e9a85592a73e04eff123e5f345240a59962d5 (diff)
downloadMusik-24a7d5fc8a6fc80ee96139f4505ce1f5f799e097.tar.xz
Schlafe_mein_Prinzchen_schlaf_ein neu
Diffstat (limited to 'Schlafe_mein_Prinzchen_schlaf_ein/Makefile')
-rw-r--r--Schlafe_mein_Prinzchen_schlaf_ein/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Schlafe_mein_Prinzchen_schlaf_ein/Makefile b/Schlafe_mein_Prinzchen_schlaf_ein/Makefile
new file mode 100644
index 0000000..ff3ee4e
--- /dev/null
+++ b/Schlafe_mein_Prinzchen_schlaf_ein/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 $<