From e875ba6faef78a6cfdfa3df501200b9227289d87 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Jul 2024 17:34:35 +0200 Subject: fix CIS Makefiles --- Schwul_(CIS_Buch)/Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'Schwul_(CIS_Buch)') diff --git a/Schwul_(CIS_Buch)/Makefile b/Schwul_(CIS_Buch)/Makefile index 93067fb..ff3ee4e 100644 --- a/Schwul_(CIS_Buch)/Makefile +++ b/Schwul_(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 $< -- cgit v1.2.3-70-g09d2