diff options
Diffstat (limited to 'Die_Bluemelein_sie_schlafen/Makefile')
-rw-r--r-- | Die_Bluemelein_sie_schlafen/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Die_Bluemelein_sie_schlafen/Makefile b/Die_Bluemelein_sie_schlafen/Makefile new file mode 100644 index 0000000..ff3ee4e --- /dev/null +++ b/Die_Bluemelein_sie_schlafen/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 $< |