diff options
author | Erich Eckner <git@eckner.net> | 2024-01-18 20:20:47 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-01-18 20:20:47 +0100 |
commit | 5f3e9a85592a73e04eff123e5f345240a59962d5 (patch) | |
tree | a6592270eedb4575ed9923db8367da66db794916 /Oever_de_stillen_Straten/Makefile | |
parent | dd31dcea4888a3dbe87cbf564209967a41ffb051 (diff) | |
download | Musik-5f3e9a85592a73e04eff123e5f345240a59962d5.tar.xz |
Oever_de_stillen_Straten neu
Diffstat (limited to 'Oever_de_stillen_Straten/Makefile')
-rw-r--r-- | Oever_de_stillen_Straten/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Oever_de_stillen_Straten/Makefile b/Oever_de_stillen_Straten/Makefile new file mode 100644 index 0000000..ff3ee4e --- /dev/null +++ b/Oever_de_stillen_Straten/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 $< |