diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-07-19 12:22:24 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-07-19 12:22:24 +0200 |
commit | ca63ecc1576d85fa2a21873986893fd3877426d3 (patch) | |
tree | d1fd0dd8dbf7a49b1da62513d14de1a149526324 /Sandmann/Makefile | |
parent | 71380a5629fddea101bb1c687ed0b56e9c212630 (diff) | |
download | Musik-ca63ecc1576d85fa2a21873986893fd3877426d3.tar.xz |
Sandmann neu
Diffstat (limited to 'Sandmann/Makefile')
-rw-r--r-- | Sandmann/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Sandmann/Makefile b/Sandmann/Makefile new file mode 100644 index 0000000..93067fb --- /dev/null +++ b/Sandmann/Makefile @@ -0,0 +1,36 @@ +CURDOC=$(shell basename "$(CURDIR)") + +DIRS=../Geh_aus_mein_Herz ../In_dieser_lieben_Sommerzeit + +EXTRAS=-mit-Texthinweisen + +all: $(CURDOC)$(EXTRAS).pdf + +print: + @echo $(CURDOC)$(EXTRAS).pdf + +clean: + rm -f *.pre *.post + +Clean: clean + rm -f *.pdf *.midi + +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 + cat ../.meta/header.ly "$<" \ + |m4 \ + >"$@" + +%.pdf: %.post + lilypond $< + pkill -SIGHUP -xf "mupdf(-x11)? $@" || true |