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