diff options
Diffstat (limited to 'Das_Heimattal/Makefile')
-rw-r--r-- | Das_Heimattal/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Das_Heimattal/Makefile b/Das_Heimattal/Makefile index 93067fb..ff3ee4e 100644 --- a/Das_Heimattal/Makefile +++ b/Das_Heimattal/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 $< |